mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
Bug 415259: Update the install status in the get add-ons results if installation is cancelled. r=robstrong.
This commit is contained in:
parent
a31a139ee3
commit
c25885378f
@ -2600,7 +2600,21 @@ var gExtensionsViewController = {
|
||||
if (!result)
|
||||
return;
|
||||
|
||||
gExtensionManager.cancelInstallItem(getIDFromResourceURI(aSelectedItem.id));
|
||||
var id = getIDFromResourceURI(aSelectedItem.id);
|
||||
gExtensionManager.cancelInstallItem(id);
|
||||
if (gSearchDS) {
|
||||
// Check for a search result for this entry
|
||||
var searchResult = gSearchDS.GetSource(gRDF.GetResource(PREFIX_NS_EM + "addonID"),
|
||||
gRDF.GetLiteral(id),
|
||||
true);
|
||||
if (searchResult) {
|
||||
// Remove the installed status
|
||||
gSearchDS.Unassert(searchResult,
|
||||
gRDF.GetResource(PREFIX_NS_EM + "action"),
|
||||
gRDF.GetLiteral("installed"),
|
||||
true);
|
||||
}
|
||||
}
|
||||
gExtensionsViewController.onCommandUpdate();
|
||||
gExtensionsView.selectedItem.focus();
|
||||
updateOptionalViews();
|
||||
|
Loading…
Reference in New Issue
Block a user