From fcc366a17622be580bbef0c285dd2549e5f88e86 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Oct 2017 01:44:45 -0400 Subject: [PATCH] Fix #1272, Different-account warning with same username If you swapped in a database with a different sync account from the stored one and then opened the prefs, it would update the username to match the username from the API key, and then when you synced it would warn you using the new username for both accounts. This stops the prefs from updating the username in the DB, so it only happens during a sync. (This behavior was put in in 77a95b5e6d, I guess so that if you open the prefs twice before a sync it won't briefly show a missing/outdated username after the first time, but that's not a big deal.) --- chrome/content/zotero/preferences/preferences_sync.js | 1 - 1 file changed, 1 deletion(-) diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js index 2773784f9c..e755912c2b 100644 --- a/chrome/content/zotero/preferences/preferences_sync.js +++ b/chrome/content/zotero/preferences/preferences_sync.js @@ -47,7 +47,6 @@ Zotero_Preferences.Sync = { {timeout: 5000} ); this.displayFields(keyInfo.username); - Zotero.Users.setCurrentUsername(keyInfo.username); } catch (e) { // API key wrong/invalid