зеркало из https://github.com/mozilla/gecko-dev.git
Bug 801987 - [OTA update] system notification never reappears after dismissing "Later" and then force updating [r=marshall,a=blocking-basecamp]
This commit is contained in:
Родитель
86a1352bc2
Коммит
9d386cb602
|
@ -310,6 +310,14 @@ UpdatePrompt.prototype = {
|
|||
forceUpdateCheck: function UP_forceUpdateCheck() {
|
||||
log("Forcing update check");
|
||||
|
||||
// If we already have an active update available, don't try to
|
||||
// download again, just prompt for install.
|
||||
if (Services.um.activeUpdate) {
|
||||
this.setUpdateStatus("check-complete");
|
||||
this.showApplyPrompt(Services.um.activeUpdate);
|
||||
return;
|
||||
}
|
||||
|
||||
let checker = Cc["@mozilla.org/updates/update-checker;1"]
|
||||
.createInstance(Ci.nsIUpdateChecker);
|
||||
checker.checkForUpdates(this, true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче