extensionSystem: Add a DOWNLOADING state
https://bugzilla.gnome.org/show_bug.cgi?id=654770
This commit is contained in:
@ -16,6 +16,7 @@ const ExtensionState = {
|
||||
DISABLED: 2,
|
||||
ERROR: 3,
|
||||
OUT_OF_DATE: 4,
|
||||
DOWNLOADING: 5,
|
||||
|
||||
// Used as an error state for operations on unknown extensions,
|
||||
// should never be in a real extensionMeta object.
|
||||
@ -113,6 +114,12 @@ function installExtensionFromManifestURL(uuid, url) {
|
||||
return;
|
||||
}
|
||||
|
||||
let meta = extensionMeta[uuid] = { uuid: uuid,
|
||||
state: ExtensionState.DOWNLOADING,
|
||||
error: '' };
|
||||
|
||||
_signals.emit('extension-state-changed', meta);
|
||||
|
||||
installExtensionFromManifest(manifest, meta);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user