Detect mode of Tab Mix Plus correctly
This commit is contained in:
parent
4bcca0d787
commit
8bce1239b3
@ -1820,17 +1820,19 @@ TreeStyleTabBrowser.prototype = {
|
||||
var splitter = this.splitter;
|
||||
if (splitter.collapsed || splitter.getAttribute('state') != 'collapsed') {
|
||||
let shouldAutoHideForSingleTab = (
|
||||
(
|
||||
// "autohide for single tab" feature is removed on Firefox 23.
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=855370
|
||||
(
|
||||
prefs.getDefaultPref('browser.tabs.autoHide') !== null ||
|
||||
// but "Hide Tab Bar With One Tab" provides it.
|
||||
// https://addons.mozilla.org/firefox/addon/hide-tab-bar-with-one-tab/
|
||||
'hideTabBar' in this.window ||
|
||||
// Tab Mix Plus also provides it.
|
||||
'TabmixTabbar' in this.window && this.window.TabmixTabbar.hideMode > 0
|
||||
'hideTabBar' in this.window
|
||||
) &&
|
||||
prefs.getPref('browser.tabs.autoHide')
|
||||
) ||
|
||||
// Tab Mix Plus also provides it.
|
||||
'TabmixTabbar' in this.window && this.window.TabmixTabbar.hideMode > 0
|
||||
);
|
||||
this._tabStripPlaceHolder.collapsed =
|
||||
splitter.collapsed =
|
||||
|
Loading…
Reference in New Issue
Block a user