[gnome-shell/gnome-3-36] extensionSystem: Update canChange on error



commit e210d3138b5d9d0450628b6bc8e50c585f5e1da7
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun May 10 18:21:03 2020 +0000

    extensionSystem: Update canChange on error
    
    Whether or not an extension has errors influences the 'canChange'
    property, but so far we only update it for errors that occur when
    initializing the extension, not when an extension is enabled later.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1249
    
    
    (cherry picked from commit 3309031fd15033f34daa32d2eaff61b3fd5c234b)

 js/ui/extensionSystem.js | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index 475a5fbb93..d8c16d91f3 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -269,6 +269,7 @@ var ExtensionManager = class {
         extension.errors.push(message);
 
         logError(error, 'Extension %s'.format(uuid));
+        this._updateCanChange(extension);
         this.emit('extension-state-changed', extension);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]