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.
This commit is contained in:
Florian Müllner 2015-12-15 03:51:50 +01:00
parent fd837d74d1
commit a36686a6aa

View File

@ -334,7 +334,7 @@ function _sessionUpdated() {
// from allowExtensions in the future // from allowExtensions in the future
if (Main.sessionMode.allowExtensions) { if (Main.sessionMode.allowExtensions) {
if (initted) if (initted)
onEnabledExtensionsChanged(); enabledExtensions = getEnabledExtensions();
enableAllExtensions(); enableAllExtensions();
} else { } else {
disableAllExtensions(); disableAllExtensions();