[gnome-shell] extensionSystem: Fix updating extension list on session update



commit a36686a6aa2380d4ab8ce15ccb61cbc96e7ee8f2
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Dec 15 03:51:50 2015 +0100

    extensionSystem: Fix updating extension list on session update
    
    Before reenabling all extensions, we update the list of enabled extensions
    to catch any changes that happened while extensions were enabled. However
    this is currently broken as onEnabledExtensionsChanged() is a nop while
    disabled, so just call getEnabledExtensions() directly.

 js/ui/extensionSystem.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/extensionSystem.js b/js/ui/extensionSystem.js
index fac21bf..ba33222 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -334,7 +334,7 @@ function _sessionUpdated() {
     // from allowExtensions in the future
     if (Main.sessionMode.allowExtensions) {
         if (initted)
-            onEnabledExtensionsChanged();
+            enabledExtensions = getEnabledExtensions();
         enableAllExtensions();
     } else {
         disableAllExtensions();


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