[Pkg-mozext-commits] [tabmixplus] 23/61: When preference value is not initialize use valueFromPreferences to get the value directly
David Prévot
taffit at moszumanska.debian.org
Fri Aug 28 19:09:19 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 c818f58cbdf0c7bc78d4c662abcb9e636ea78ea3
Author: onemen <tabmix.onemen at gmail.com>
Date: Thu Jul 23 14:58:38 2015 +0300
When preference value is not initialize use valueFromPreferences to get the value directly
---
chrome/content/preferences/preferences.js | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/chrome/content/preferences/preferences.js b/chrome/content/preferences/preferences.js
index 1da1e9f..2d268ac 100644
--- a/chrome/content/preferences/preferences.js
+++ b/chrome/content/preferences/preferences.js
@@ -221,6 +221,11 @@ var gPrefWindow = { // jshint ignore:line
tabs._inited = true;
if (preference.value !== null)
tabs.selectedIndex = preference.value;
+ else {
+ let val = preference.valueFromPreferences;
+ if (val !== null)
+ tabs.selectedIndex = val;
+ }
}
else if (preference.value != tabs.selectedIndex)
preference.valueFromPreferences = tabs.selectedIndex;
--
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