Don't start auto-sync until UI is ready

This commit is contained in:
Dan Stillman 2016-12-22 06:58:24 -05:00
parent bd9501218e
commit cf686c520a

View file

@ -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);