init autohide module with delay
This commit is contained in:
parent
08d63d74a2
commit
01b34dc8b9
@ -166,6 +166,17 @@ var TreeStyleTabService = {
|
|||||||
kSEARCH_RESULT_ATTACH_IF_SELECTED : 1,
|
kSEARCH_RESULT_ATTACH_IF_SELECTED : 1,
|
||||||
kSEARCH_RESULT_ATTACH_ALWAYS : 2,
|
kSEARCH_RESULT_ATTACH_ALWAYS : 2,
|
||||||
|
|
||||||
|
get isAutoHide()
|
||||||
|
{
|
||||||
|
return window.fullScreen ?
|
||||||
|
(
|
||||||
|
window.fullScreen &&
|
||||||
|
this.getPref('browser.fullscreen.autohide') &&
|
||||||
|
this.getTreePref('tabbar.autoHide.mode.fullscreen')
|
||||||
|
) :
|
||||||
|
this.getTreePref('tabbar.autoHide.mode');
|
||||||
|
},
|
||||||
|
|
||||||
/* Initializing */
|
/* Initializing */
|
||||||
|
|
||||||
preInit : function TSTService_preInit()
|
preInit : function TSTService_preInit()
|
||||||
@ -378,6 +389,8 @@ var TreeStyleTabService = {
|
|||||||
this.processRestoredTabs();
|
this.processRestoredTabs();
|
||||||
this.updateTabsOnTop();
|
this.updateTabsOnTop();
|
||||||
|
|
||||||
|
// Init autohide service only if it have to be activated.
|
||||||
|
if (this.isAutoHide)
|
||||||
this.onPrefChange('extensions.treestyletab.tabbar.autoHide.mode');
|
this.onPrefChange('extensions.treestyletab.tabbar.autoHide.mode');
|
||||||
this.onPrefChange('extensions.treestyletab.tabbar.style');
|
this.onPrefChange('extensions.treestyletab.tabbar.style');
|
||||||
this.onPrefChange('extensions.treestyletab.autoCollapseExpandSubtreeOnSelect.whileFocusMovingByShortcut');
|
this.onPrefChange('extensions.treestyletab.autoCollapseExpandSubtreeOnSelect.whileFocusMovingByShortcut');
|
||||||
|
@ -536,14 +536,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this._readyToInitDNDObservers();
|
this._readyToInitDNDObservers();
|
||||||
|
|
||||||
// Init autohide service only if it have to be activated.
|
// Init autohide service only if it have to be activated.
|
||||||
if (window.fullScreen ?
|
if (this.isAutoHide)
|
||||||
(
|
|
||||||
window.fullScreen &&
|
|
||||||
this.getPref('browser.fullscreen.autohide') &&
|
|
||||||
this.getTreePref('tabbar.autoHide.mode.fullscreen')
|
|
||||||
) :
|
|
||||||
this.getTreePref('tabbar.autoHide.mode')
|
|
||||||
)
|
|
||||||
this.autoHide;
|
this.autoHide;
|
||||||
|
|
||||||
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_INITIALIZE);
|
this.updateFloatingTabbar(this.kTABBAR_UPDATE_BY_INITIALIZE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user