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
|
// property; it might make sense to make enabledExtensions independent
|
||||||
// from allowExtensions in the future
|
// from allowExtensions in the future
|
||||||
if (Main.sessionMode.allowExtensions) {
|
if (Main.sessionMode.allowExtensions) {
|
||||||
if (this._initialized)
|
// Take care of added or removed sessionMode extensions
|
||||||
this._enabledExtensions = this._getEnabledExtensions();
|
this._onEnabledExtensionsChanged();
|
||||||
this._enableAllExtensions();
|
this._enableAllExtensions();
|
||||||
} else {
|
} else {
|
||||||
this._disableAllExtensions();
|
this._disableAllExtensions();
|
||||||
|
Loading…
Reference in New Issue
Block a user