mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 22:39:58 +02:00
Fix extension buttons remaining when switching to compact mode
This commit is contained in:
parent
775b5288fb
commit
e8eb4a41cf
1 changed files with 8 additions and 0 deletions
|
@ -103,6 +103,14 @@ var gZenCompactModeManager = {
|
|||
document.getElementById(idName + 'both').setAttribute('checked', hideBoth);
|
||||
},
|
||||
|
||||
_removeOpenStateOnUnifiedExtensions() {
|
||||
// Fix for bug https://github.com/zen-browser/desktop/issues/1925
|
||||
const buttons = document.querySelectorAll('toolbarbutton:is(#unified-extensions-button, .webextension-browser-action)');
|
||||
for (let button of buttons) {
|
||||
button.removeAttribute('open');
|
||||
}
|
||||
},
|
||||
|
||||
_disableTabsOnHoverIfConflict() {
|
||||
if (Services.prefs.getBoolPref('zen.view.compact') && Services.prefs.getBoolPref('zen.view.compact.hide-tabbar')) {
|
||||
Services.prefs.setBoolPref('zen.view.sidebar-expanded.on-hover', false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue