From c0091db15ea4b7a030595fa3a95704c633ea4fe8 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 2 Sep 2010 16:48:48 +0000 Subject: [PATCH] Fixes #1719, Autosync suspension needs to persist Don't auto-sync on Zotero pane open if a manual sync is required --- chrome/content/zotero/overlay.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 0b560b325..b6a8d4335 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -434,9 +434,14 @@ var ZoteroPane = new function() // Auto-sync on pane open if (Zotero.Prefs.get('sync.autoSync') && Zotero.Sync.Server.enabled && !Zotero.Sync.Server.syncInProgress && !Zotero.Sync.Storage.syncInProgress) { - setTimeout(function () { - Zotero.Sync.Runner.sync(true); - }, 1000); + if (Zotero.Sync.Server.manualSyncRequired) { + Zotero.debug('Manual sync required -- skipping auto-sync', 4); + } + else { + setTimeout(function () { + Zotero.Sync.Runner.sync(true); + }, 1000); + } } } else {