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:
parent
0e45473992
commit
c0091db15e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user