commit e3f251f7c77e79d6ce46933c6d06c667cb6ebf19 parent 4f45e9156f7194aed9bd25095da7cca8db59d670 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 8 Jul 2008 19:12:30 +0000 Don't trigger autosync on 'refresh' event Diffstat:
| M | chrome/content/zotero/xpcom/sync.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js @@ -1039,7 +1039,10 @@ Zotero.Sync.Server = new function () { } // {} implements nsITimerCallback - _autoSyncTimer.initWithCallback({ notify: function () { + _autoSyncTimer.initWithCallback({ notify: function (event, type, ids) { + if (event == 'refresh') { + return; + } if (_syncInProgress) { Zotero.debug('Sync already in progress -- skipping auto-sync'); return;