From d9775e41b24c130ebcbb1814ac351283b8e650fb Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Thu, 1 Aug 2019 16:17:20 +0200 Subject: [PATCH] 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 --- js/ui/extensionSystem.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js index e9934cc5c..226b49ab4 100644 --- a/js/ui/extensionSystem.js +++ b/js/ui/extensionSystem.js @@ -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() {