Bug 619682 - Addons Manager "Available Updates" pane shown even if no updates, if check for updates performed from "Recent Updates" section; r,a=Mossop
authorBlair McBride <bmcbride@mozilla.com>
Mon, 03 Jan 2011 13:45:34 +1300
changeset 60701 c22c9543a44959b24069d44dcb8dfb41e360c1c9
parent 60700 7c9e4303c3c7b545e02cb405a0894dd4f1d7701e
child 60702 14f62a4633a631890e4b54e787f70cb1d0fe5893
push idunknown
push userunknown
push dateunknown
reviewersMossop
bugs619682
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 619682 - Addons Manager "Available Updates" pane shown even if no updates, if check for updates performed from "Recent Updates" section; r,a=Mossop
toolkit/mozapps/extensions/content/extensions.js
--- a/toolkit/mozapps/extensions/content/extensions.js
+++ b/toolkit/mozapps/extensions/content/extensions.js
@@ -2718,17 +2718,17 @@ var gUpdatesView = {
   updateAvailableCount: function(aInitializing) {
     if (aInitializing)
       gPendingInitializations++;
     var self = this;
     AddonManager.getAllInstalls(function(aInstallsList) {
       var count = aInstallsList.filter(function(aInstall) {
         return self.isManualUpdate(aInstall, true);
       }).length;
-      self._categoryItem.disabled = gViewController.currentViewObj != self &&
+      self._categoryItem.disabled = gViewController.currentViewId != "addons://updates/available" &&
                                     count == 0;
       self._categoryItem.badgeCount = count;
       if (aInitializing)
         notifyInitialized();
     });
   },
   
   maybeDisableUpdateSelected: function() {