зеркало из https://github.com/mozilla/gecko-dev.git
Toggle SNAV again.
This commit is contained in:
Родитель
2dba33766b
Коммит
d85e8c9bf3
|
@ -299,6 +299,10 @@ function MiniNavStartup()
|
|||
getBrowser().mStrip.collapsed=true;
|
||||
}
|
||||
|
||||
/* Recover whiever is the state SNAV in the pref */
|
||||
|
||||
gStateSNAV = gPref.getBoolPref("snav.enabled");
|
||||
|
||||
}
|
||||
|
||||
function BrowserWithoutSNAV(e) {
|
||||
|
@ -798,6 +802,10 @@ function MenuPopupHidden() {
|
|||
* https://bugzilla.mozilla.org/show_bug.cgi?id=311287#c1 - we should have the snav interface here.
|
||||
*/
|
||||
function BrowserSNAVToggle(state) {
|
||||
if(gStateSNAV != state) { // goes through actually doing, only first time.
|
||||
gPref.setBoolPref("snav.enabled", state);
|
||||
gStateSNAV=state;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче