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:
Giovanni Campagna 2012-03-01 15:53:48 +01:00
parent 24badb46fe
commit 772638c78e

View File

@ -430,13 +430,11 @@ const InstallExtensionDialog = new Lang.Class({
},
_onInstallButtonPressed: function(button, event) {
let extension = { uuid: this._uuid,
state: ExtensionState.DOWNLOADING,
error: '' };
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,