www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit fcc366a17622be580bbef0c285dd2549e5f88e86
parent f880fd12d6d16254d2aee0b77f175d7b003e26ad
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue,  3 Oct 2017 01:44:45 -0400

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

Diffstat:
Mchrome/content/zotero/preferences/preferences_sync.js | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

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