Fixes #1719, Autosync suspension needs to persist

Don't auto-sync on Zotero pane open if a manual sync is required
This commit is contained in:
Dan Stillman 2010-09-02 16:48:48 +00:00
parent 0e45473992
commit c0091db15e

View File

@ -434,11 +434,16 @@ 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) {
if (Zotero.Sync.Server.manualSyncRequired) {
Zotero.debug('Manual sync required -- skipping auto-sync', 4);
}
else {
setTimeout(function () {
Zotero.Sync.Runner.sync(true);
}, 1000);
}
}
}
else {
zoteroPane.setAttribute('collapsed', true);
zoteroPane.height = 0;