Restore window's auto hide state with delay for safety

This commit is contained in:
YUKI Hiroshi 2015-03-03 20:49:00 +09:00
parent 410ccad473
commit 8a1e2f20fa

View File

@ -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');