[Pkg-mozext-commits] [tabmixplus] 15/61: Disabled 'undo closed tabs button' when 'browser.sessionstore.max_tabs_undo' changed to zero
David Prévot
taffit at moszumanska.debian.org
Fri Aug 28 19:09:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 9bd0c67d53e3fce1e63d6357cff8d0ca91decbbb
Author: onemen <tabmix.onemen at gmail.com>
Date: Tue Jul 14 19:37:11 2015 +0300
Disabled 'undo closed tabs button' when 'browser.sessionstore.max_tabs_undo' changed to zero
---
chrome/content/tab/tab.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 0ac74e7..6b5eb66 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1352,7 +1352,8 @@ var gTMPprefObserver = {
prefValue = Services.prefs.getIntPref(prefName);
if (Tabmix.prefs.getBoolPref("undoClose") != (prefValue > 0))
Tabmix.prefs.setBoolPref("undoClose", prefValue > 0);
- TMP_ClosedTabs.setButtonDisableState();
+ let state = prefValue === 0 || undefined;
+ TMP_ClosedTabs.setButtonDisableState(state);
break;
case "browser.warnOnRestart":
case "browser.warnOnQuit":
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list