extensionSystem: Allow disabling extensions when globally disabled
The canChange property was not actually reflecting whether the enableExtension or disableExtension can change the underlying setting. Instead the property was showing whether such a change will have an effect. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/695
This commit is contained in:
parent
5796a5d193
commit
d9775e41b2
@ -367,10 +367,7 @@ var ExtensionManager = class {
|
||||
? DISABLE_USER_EXTENSIONS_KEY
|
||||
: ENABLED_EXTENSIONS_KEY;
|
||||
|
||||
extension.canChange =
|
||||
!hasError &&
|
||||
global.settings.is_writable(changeKey) &&
|
||||
(isMode || !modeOnly);
|
||||
extension.canChange = global.settings.is_writable(ENABLED_EXTENSIONS_KEY);
|
||||
}
|
||||
|
||||
_getEnabledExtensions() {
|
||||
|
Loading…
Reference in New Issue
Block a user