зеркало из https://github.com/mozilla/gecko-dev.git
Bug 230219 navigator button preferences only work if a navigator window is open r=dean_tessman sr=alecf a=chofmann
This commit is contained in:
Родитель
455d94ebeb
Коммит
7d172268bf
|
@ -74,6 +74,12 @@ var gFocusedDocument = null;
|
|||
const gButtonPrefListener =
|
||||
{
|
||||
domain: "browser.toolbars.showbutton",
|
||||
init: function()
|
||||
{
|
||||
var array = pref.getChildList(this.domain, {});
|
||||
for (var i in array)
|
||||
this.observe(pref, "nsPref:changed", array[i]);
|
||||
},
|
||||
observe: function(subject, topic, prefName)
|
||||
{
|
||||
// verify that we're changing a button pref
|
||||
|
@ -460,6 +466,9 @@ function Startup()
|
|||
|
||||
// Do all UI building here:
|
||||
|
||||
// Ensure button visibility matches prefs
|
||||
gButtonPrefListener.init();
|
||||
|
||||
// set home button tooltip text
|
||||
updateHomeButtonTooltip();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче