ExtensionSystem: fix installing from website
loadExtension() fails if the extension object is already created, but the installation dialog was creating a dummy object in the downloading state. Since nothing requires that (and the object is not in the correct format anyway), just kill it. https://bugzilla.gnome.org/show_bug.cgi?id=671134
This commit is contained in:
parent
24badb46fe
commit
772638c78e
@ -430,13 +430,11 @@ const InstallExtensionDialog = new Lang.Class({
|
||||
},
|
||||
|
||||
_onInstallButtonPressed: function(button, event) {
|
||||
let extension = { uuid: this._uuid,
|
||||
let state = { uuid: this._uuid,
|
||||
state: ExtensionState.DOWNLOADING,
|
||||
error: '' };
|
||||
|
||||
ExtensionUtils.extensions[this._uuid] = extension;
|
||||
|
||||
_signals.emit('extension-state-changed', extension);
|
||||
_signals.emit('extension-state-changed', state);
|
||||
|
||||
let params = { version_tag: this._version_tag,
|
||||
shell_version: Config.PACKAGE_VERSION,
|
||||
|
Loading…
Reference in New Issue
Block a user