commit cf686c520afee814604fa6102d7ecdec3b4a120c
parent bd9501218edda493dfbbd353eb4ce4367275f2d3
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 22 Dec 2016 06:58:24 -0500
Don't start auto-sync until UI is ready
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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);