Commits

Fabrice Desré committed 9fba505 Draft

Bug 801987 - [OTA update] system notification never reappears after dismissing "Later" and then force updating [r=marshall]

  • Participants
  • Parent commits ab6c700

Comments (0)

Files changed (1)

File b2g/components/UpdatePrompt.js

   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);