From cf686c520afee814604fa6102d7ecdec3b4a120c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 22 Dec 2016 06:58:24 -0500 Subject: [PATCH] Don't start auto-sync until UI is ready --- chrome/content/zotero/zoteroPane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 1ada0bf5c..4d91eb994 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -424,7 +424,8 @@ var ZoteroPane = new function() // Auto-sync on pane open or if new account if (Zotero.Prefs.get('sync.autoSync') || Zotero.initAutoSync) { - yield Zotero.proxyAuthComplete.delay(1000); + yield Zotero.proxyAuthComplete; + yield Zotero.uiReadyPromise; if (!Zotero.Sync.Runner.enabled) { Zotero.debug('Sync not enabled -- skipping auto-sync', 4);