Extensions: only hide the add-ons UI when the panel has been extended

Now disabling the extensions add-on restores the original UI.
This commit is contained in:
Campbell Barton
2024-02-01 17:03:44 +11:00
parent dd641d15d0
commit 3906bf0174

View File

@@ -2187,7 +2187,7 @@ class USERPREF_PT_addons(AddOnPanel, Panel):
prefs = context.preferences
use_extension_repos = prefs.experimental.use_extension_repos
if use_extension_repos:
if use_extension_repos and self.is_extended():
# Rely on the draw function being appended to by the extensions add-on.
return