Bug 679324 - Don't show the update channel on the about dialog if the updater is disabled; r=margaret

This commit is contained in:
Landry Breuil 2011-08-24 15:48:02 +01:00
parent 6586326a0a
commit 607999d03b
2 changed files with 3 additions and 1 deletions

View File

@ -86,11 +86,11 @@ function init(aEvent)
#ifdef MOZ_UPDATER
gAppUpdater = new appUpdater();
#endif
let defaults = Services.prefs.getDefaultBranch("");
let channelLabel = document.getElementById("currentChannel");
channelLabel.value = defaults.getCharPref("app.update.channel");
#endif
#ifdef XP_MACOSX
// it may not be sized at this point, and we need its width to calculate its position

View File

@ -114,9 +114,11 @@
#endif
</vbox>
#ifdef MOZ_UPDATER
<description class="text-blurb" id="currentChannelText">
&channel.description.start;<label id="currentChannel"/>&channel.description.end;
</description>
#endif
<description class="text-blurb" id="communityDesc">
&community.start2;<label class="text-link" href="http://www.mozilla.org/">&community.mozillaLink;</label>&community.middle2;<label class="text-link" href="about:credits">&community.creditsLink;</label>&community.end2;
</description>