seamonkey-no-update.patch
changeset 0 b71590debb98
equal deleted inserted replaced
-1:000000000000 0:b71590debb98
       
     1 diff --git a/suite/common/utilityOverlay.js b/suite/common/utilityOverlay.js
       
     2 --- a/suite/common/utilityOverlay.js
       
     3 +++ b/suite/common/utilityOverlay.js
       
     4 @@ -671,7 +671,13 @@ function updateCheckUpdatesItem()
       
     5    // administrator or if we cannot update for some other reason.
       
     6    var checkForUpdates = document.getElementById("checkForUpdates");
       
     7    var canUpdate = updates.canUpdate;
       
     8 +  var prefs = Components.classes["@mozilla.org/preferences-service;1"]
       
     9 +                       .getService(Components.interfaces.nsIPrefBranch);
       
    10 +  var updateEnabled = prefs.getBoolPref("app.update.enabled", true);
       
    11    checkForUpdates.setAttribute("disabled", !canUpdate);
       
    12 +  checkForUpdates.setAttribute("hidden", !canUpdate || !updateEnabled);
       
    13 +  var updateSeparator = document.getElementById("menu_HelpUpdatesSeparator");
       
    14 +  updateSeparator.setAttribute("hidden", !canUpdate || !updateEnabled);
       
    15    if (!canUpdate)
       
    16      return;
       
    17