зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1000377 - Always show the toggleable toolbars dropdown in customization mode even if the only toolbar available is the bookmarks toolbar. r=MattN
This commit is contained in:
Родитель
8832b5d42b
Коммит
6d168c03c6
|
@ -161,8 +161,7 @@ CustomizeMode.prototype = {
|
|||
let toolbarVisibilityBtn = document.getElementById(kToolbarVisibilityBtn);
|
||||
let togglableToolbars = window.getTogglableToolbars();
|
||||
let bookmarksToolbar = document.getElementById("PersonalToolbar");
|
||||
if (togglableToolbars.length == 0 ||
|
||||
(togglableToolbars.length == 1 && togglableToolbars[0] == bookmarksToolbar)) {
|
||||
if (togglableToolbars.length == 0) {
|
||||
toolbarVisibilityBtn.setAttribute("hidden", "true");
|
||||
} else {
|
||||
toolbarVisibilityBtn.removeAttribute("hidden");
|
||||
|
|
Загрузка…
Ссылка в новой задаче