diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index 0aef0d39..676f8e6b 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -136,6 +136,11 @@ pref("extensions.treestyletab.tabbar.autoShow.accelKeyDown", true); pref("extensions.treestyletab.tabbar.autoShow.accelKeyDown.delay", 800); pref("extensions.treestyletab.tabbar.autoShow.tabSwitch", true); pref("extensions.treestyletab.tabbar.autoShow.feedback", false); +pref("extensions.treestyletab.tabbar.autoShow.feedback.opened", true); +pref("extensions.treestyletab.tabbar.autoShow.feedback.closed", true); +pref("extensions.treestyletab.tabbar.autoShow.feedback.moved", true); +pref("extensions.treestyletab.tabbar.autoShow.feedback.selected", true); +pref("extensions.treestyletab.tabbar.autoShow.feedback.titleChanged", true); pref("extensions.treestyletab.tabbar.autoShow.feedback.delay", 3000); /** * Size of the placeholder for "hidden tab bar". diff --git a/modules/autoHide.js b/modules/autoHide.js index 33498b12..719c6aaa 100644 --- a/modules/autoHide.js +++ b/modules/autoHide.js @@ -1241,17 +1241,25 @@ AutoHideBrowser.prototype = inherit(AutoHideBase.prototype, { return this.notifyStatusToAllTabs(aEvent.target); case 'TabOpen': + if (utils.getTreePref('tabbar.autoShow.feedback.opened')) + this.showForFeedback(aEvent.originalTarget); + return; + case 'TabClose': - return this.showForFeedback(aEvent.originalTarget); + if (utils.getTreePref('tabbar.autoShow.feedback.closed')) + this.showForFeedback(aEvent.originalTarget); + return; case 'TabMove': - if (!this.treeStyleTab.subTreeMovingCount && + if (utils.getTreePref('tabbar.autoShow.feedback.moved') + !this.treeStyleTab.subTreeMovingCount && !this.treeStyleTab.isTabInternallyMoving(aEvent.originalTarget)) this.showForFeedback(aEvent.originalTarget); return; case 'select': - if (!this.window.TreeStyleTabService.accelKeyPressed) + if (utils.getTreePref('tabbar.autoShow.feedback.selected') && + !this.window.TreeStyleTabService.accelKeyPressed) this.showForFeedback(aEvent.originalTarget); return; @@ -1465,6 +1473,7 @@ AutoHideBrowser.prototype = inherit(AutoHideBase.prototype, { onTabTitleChanged : function AHB_onTabTitleChanged(aTab) { + if (utils.getTreePref('tabbar.autoShow.feedback.titleChanged')) this.showForFeedback(aTab); },