From 8a1e2f20fa81b7f48478f2bf4ea22064b1b9ac6a Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 3 Mar 2015 20:49:00 +0900 Subject: [PATCH] Restore window's auto hide state with delay for safety --- modules/window.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/window.js b/modules/window.js index 145f3364..420adf0d 100644 --- a/modules/window.js +++ b/modules/window.js @@ -419,8 +419,9 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { this.processRestoredTabs(); this.updateTabsOnTop(); - // Init autohide service only if it have to be activated. - this.autoHideWindow.restoreLastState(); + w.setTimeout(function(aSelf) { + aSelf.autoHideWindow.restoreLastState(); + }, 0, this); this.onPrefChange('extensions.treestyletab.autoCollapseExpandSubtreeOnSelect.whileFocusMovingByShortcut');