extensionSystem: Handle added or removed sessionMode extensions
Right now we're only handling added sessionMode extensions correctly on sessionMode updates, also handle the other case and disable removed sessionMode extensions on sessionMode updates. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/96
This commit is contained in:
parent
22107c183b
commit
4c93ef39fa
@ -509,8 +509,8 @@ var ExtensionManager = class {
|
||||
// property; it might make sense to make enabledExtensions independent
|
||||
// from allowExtensions in the future
|
||||
if (Main.sessionMode.allowExtensions) {
|
||||
if (this._initialized)
|
||||
this._enabledExtensions = this._getEnabledExtensions();
|
||||
// Take care of added or removed sessionMode extensions
|
||||
this._onEnabledExtensionsChanged();
|
||||
this._enableAllExtensions();
|
||||
} else {
|
||||
this._disableAllExtensions();
|
||||
|
Loading…
Reference in New Issue
Block a user