[Pkg-mozext-commits] [tabmixplus] 10/22: Don't synce sessions.onStart.sessionpath

David Prévot taffit at moszumanska.debian.org
Sun Jan 4 16:46:36 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 d74da18ca0b5bcc5b5e278dbec5ed9ebe5d21f85
Author: onemen <tabmix.onemen at gmail.com>
Date:   Thu Dec 25 18:57:46 2014 +0200

    Don't synce sessions.onStart.sessionpath
---
 chrome/content/preferences/preferences.js | 4 +++-
 chrome/content/tab/tab.js                 | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/chrome/content/preferences/preferences.js b/chrome/content/preferences/preferences.js
index 14fd883..dddc097 100644
--- a/chrome/content/preferences/preferences.js
+++ b/chrome/content/preferences/preferences.js
@@ -396,8 +396,10 @@ function toggleSyncPreference() {
   const sync = "services.sync.prefs.sync.";
   let fn = Tabmix.prefs.getBoolPref("syncPrefs") ? "clearUserPref" : "setBoolPref";
   Tabmix.prefs[fn]("syncPrefs", true);
+  let exclode = ["extensions.tabmix.sessions.onStart.sessionpath"];
   gPreferenceList.forEach(function(pref) {
-    Services.prefs[fn](sync + pref, true);
+    if (exclode.indexOf(pref) == -1)
+      Services.prefs[fn](sync + pref, true);
   });
   Services.prefs.savePrefFile(null);
 }
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 5c97443..15ac2bb 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -1850,6 +1850,9 @@ try {
       Tabmix.prefs.setBoolPref("tabbar.dblclick_changesize", val);
       Tabmix.prefs.clearUserPref("dblClickTabbar_changesize");
     }
+    // 2014-12-25
+    // don't synce sessions.onStart.sessionpath
+    Services.prefs.clearUserPref("services.sync.prefs.sync.extensions.tabmix.sessions.onStart.sessionpath");
 
     // verify valid value
     if (Tabmix.prefs.prefHasUserValue("tabs.closeButtons")) {

-- 
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