mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 445710: Add-on update shows old version while downloading. r=robstrong
This commit is contained in:
parent
0f987d9366
commit
d3c023f9bb
@ -924,7 +924,7 @@
|
||||
<xul:image class="addonIcon" xbl:inherits="src=iconURL"/>
|
||||
</xul:vbox>
|
||||
<xul:vbox flex="1" class="addonTextBox">
|
||||
<xul:hbox class="addon-name-version" xbl:inherits="name, version"/>
|
||||
<xul:hbox class="addon-name-version" xbl:inherits="name, version=newVersion"/>
|
||||
<xul:progressmeter class="extension-item-progress" xbl:inherits="value=progress"/>
|
||||
<xul:label class="extension-item-status" xbl:inherits="value=status" value="&installWaiting.label;"/>
|
||||
</xul:vbox>
|
||||
|
@ -5782,12 +5782,17 @@ ExtensionManager.prototype = {
|
||||
// being updated during an install.
|
||||
if (!manager) {
|
||||
var id = currItem.id
|
||||
ds.setItemProperties(id, {
|
||||
var props = {
|
||||
availableUpdateURL: null,
|
||||
availableUpdateHash: null,
|
||||
availableUpdateVersion: null,
|
||||
availableUpdateInfo: null
|
||||
});
|
||||
};
|
||||
var updateVersion = ds.getItemProperty(id, "availableUpdateVersion");
|
||||
var updateURL = ds.getItemProperty(id, "availableUpdateURL");
|
||||
if (updateVersion && (updateURL == currItem.xpiURL))
|
||||
props.newVersion = EM_L(updateVersion);
|
||||
ds.setItemProperties(id, props);
|
||||
ds.updateProperty(id, "availableUpdateURL");
|
||||
ds.updateProperty(id, "updateable");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user