Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
seamonkey
seamonkey-no-update.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File seamonkey-no-update.patch of Package seamonkey
diff --git a/suite/common/utilityOverlay.js b/suite/common/utilityOverlay.js --- a/suite/common/utilityOverlay.js +++ b/suite/common/utilityOverlay.js @@ -666,17 +666,23 @@ function updateCheckUpdatesItem() .getService(Components.interfaces.nsIApplicationUpdateService2); var um = Components.classes["@mozilla.org/updates/update-manager;1"] .getService(Components.interfaces.nsIUpdateManager); // Disable the UI if the update enabled pref has been locked by the // administrator or if we cannot update for some other reason. var checkForUpdates = document.getElementById("checkForUpdates"); var canCheckForUpdates = updates.canCheckForUpdates; + var prefs = Components.classes["@mozilla.org/preferences-service;1"] + .getService(Components.interfaces.nsIPrefBranch); + var updateEnabled = prefs.getBoolPref("app.update.enabled", true); checkForUpdates.setAttribute("disabled", !canCheckForUpdates); + checkForUpdates.setAttribute("hidden", !canCheckForUpdates || !updateEnabled); + var updateSeparator = document.getElementById("menu_HelpUpdatesSeparator"); + updateSeparator.setAttribute("hidden", !canCheckForUpdates || !updateEnabled); if (!canCheckForUpdates) return; // By default, show "Check for Updates..." var key = "default"; if (um.activeUpdate) { switch (um.activeUpdate.state) { case "downloading":
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor