extensionSystem: Update canChange on error

Whether or not an extension has errors influences the 'canChange'
property, but so far we only update it for errors that occur when
initializing the extension, not when an extension is enabled later.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1249
This commit is contained in:
Florian Müllner 2020-05-10 20:21:03 +02:00 committed by verdre
parent a2235c269a
commit 3309031fd1

View File

@ -268,6 +268,7 @@ var ExtensionManager = class {
extension.errors.push(message); extension.errors.push(message);
logError(error, 'Extension %s'.format(uuid)); logError(error, 'Extension %s'.format(uuid));
this._updateCanChange(extension);
this.emit('extension-state-changed', extension); this.emit('extension-state-changed', extension);
} }