From 8af73f9983a13aa8e64620b037a0ff159934df55 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 24 Dec 2016 18:01:56 -0500 Subject: [PATCH] Add a notifier event for sync start --- chrome/content/zotero/xpcom/sync/syncRunner.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js index 0461eae52..3c6b6072f 100644 --- a/chrome/content/zotero/xpcom/sync/syncRunner.js +++ b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -110,6 +110,8 @@ Zotero.Sync.Runner_Module = function (options = {}) { } _syncInProgress = true; + yield Zotero.Notifier.trigger('start', 'sync', []); + // Purge deleted objects so they don't cause sync errors (e.g., long tags) yield Zotero.purgeDataObjects(true);