[gnome-shell] extensionSystem: Set the proper 'enabled' and 'type' parameters



commit bbb83656bf83c9740fe68db7e35e05ea4f129b01
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Nov 30 22:02:09 2011 -0500

    extensionSystem: Set the proper 'enabled' and 'type' parameters
    
    When installing an extension at runtime, we accidentally swapped the 'type'
    and 'enabled' parameters. While this doesn't directly affect anything right
    now, as everything works coincidentally, future patches that look at the
    'type' parameter to decide what to do would get the wrong answer.

 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 a0302fe..9aadb3a 100644
--- a/js/ui/extensionSystem.js
+++ b/js/ui/extensionSystem.js
@@ -202,7 +202,7 @@ function gotExtensionZipFile(session, message, uuid) {
             global.settings.set_strv(ENABLED_EXTENSIONS_KEY, enabledExtensions);
         }
 
-        loadExtension(dir, true, ExtensionType.PER_USER);
+        loadExtension(dir, ExtensionType.PER_USER, true);
     });
 }
 



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