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
Родитель 5ad8b0c2dc
Коммит 3b0410e4e6
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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>