Start sync icon spinning before purging data
(cherry picked from commit 2b8311d3d7
)
This commit is contained in:
parent
ea29c5cb10
commit
250a19ec03
|
@ -127,9 +127,6 @@ Zotero.Sync.Runner_Module = function (options = {}) {
|
||||||
try {
|
try {
|
||||||
yield Zotero.Notifier.trigger('start', 'sync', []);
|
yield Zotero.Notifier.trigger('start', 'sync', []);
|
||||||
|
|
||||||
// Purge deleted objects so they don't cause sync errors (e.g., long tags)
|
|
||||||
yield Zotero.purgeDataObjects(true);
|
|
||||||
|
|
||||||
let apiKey = yield _getAPIKey();
|
let apiKey = yield _getAPIKey();
|
||||||
if (!apiKey) {
|
if (!apiKey) {
|
||||||
throw new Zotero.Error("API key not set", Zotero.Error.ERROR_API_KEY_NOT_SET);
|
throw new Zotero.Error("API key not set", Zotero.Error.ERROR_API_KEY_NOT_SET);
|
||||||
|
@ -142,6 +139,9 @@ Zotero.Sync.Runner_Module = function (options = {}) {
|
||||||
|
|
||||||
this.updateIcons('animate');
|
this.updateIcons('animate');
|
||||||
|
|
||||||
|
// Purge deleted objects so they don't cause sync errors (e.g., long tags)
|
||||||
|
yield Zotero.purgeDataObjects(true);
|
||||||
|
|
||||||
let client = this.getAPIClient({ apiKey });
|
let client = this.getAPIClient({ apiKey });
|
||||||
let keyInfo = yield this.checkAccess(client, options);
|
let keyInfo = yield this.checkAccess(client, options);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user