Don't refresh collections pane when updating library last-sync times
This commit is contained in:
parent
cd3f621a00
commit
1b6dffb886
4 changed files with 17 additions and 6 deletions
|
@ -280,8 +280,10 @@ Zotero.Feed.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
|
|||
params.push(this.libraryID);
|
||||
yield Zotero.DB.queryAsync(sql, params);
|
||||
|
||||
if (!env.options.skipNotifier) {
|
||||
Zotero.Notifier.queue('modify', 'feed', this.libraryID, env.options.notifierQueue);
|
||||
}
|
||||
}
|
||||
else {
|
||||
Zotero.debug("Feed data did not change for feed " + this.libraryID, 5);
|
||||
}
|
||||
|
|
|
@ -204,8 +204,10 @@ Zotero.Group.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
|
|||
params.push(this.groupID);
|
||||
yield Zotero.DB.queryAsync(sql, params);
|
||||
|
||||
if (!env.options.skipNotifier) {
|
||||
Zotero.Notifier.queue('modify', 'group', this.groupID);
|
||||
}
|
||||
}
|
||||
else {
|
||||
Zotero.debug("Group data did not change for group " + this.groupID, 5);
|
||||
}
|
||||
|
|
|
@ -520,7 +520,7 @@ Zotero.Library.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
|
|||
|
||||
// Since these are Zotero.Library properties, the 'modify' for the inheriting object may not
|
||||
// get triggered, so call it here too
|
||||
if (this.libraryType != 'user') {
|
||||
if (!env.options.skipNotifier && this.libraryType != 'user') {
|
||||
Zotero.Notifier.queue('modify', this.libraryType, this.libraryTypeID);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -166,7 +166,10 @@ Zotero.Sync.Data.Engine.prototype.start = Zotero.Promise.coroutine(function* ()
|
|||
}
|
||||
}
|
||||
|
||||
yield Zotero.Libraries.updateLastSyncTime(this.libraryID);
|
||||
this.library.updateLastSyncTime();
|
||||
yield this.library.saveTx({
|
||||
skipNotifier: true
|
||||
});
|
||||
|
||||
Zotero.debug("Done syncing " + this.library.name);
|
||||
});
|
||||
|
@ -850,7 +853,9 @@ Zotero.Sync.Data.Engine.prototype._uploadSettings = Zotero.Promise.coroutine(fun
|
|||
libraryVersion
|
||||
);
|
||||
this.library.libraryVersion = libraryVersion;
|
||||
yield this.library.saveTx();
|
||||
yield this.library.saveTx({
|
||||
skipNotifier: true
|
||||
});
|
||||
|
||||
Zotero.debug("Done uploading settings in " + this.library.name);
|
||||
return libraryVersion;
|
||||
|
@ -1053,7 +1058,9 @@ Zotero.Sync.Data.Engine.prototype._uploadDeletions = Zotero.Promise.coroutine(fu
|
|||
|
||||
// Update library version
|
||||
this.library.libraryVersion = libraryVersion;
|
||||
yield this.library.saveTx();
|
||||
yield this.library.saveTx({
|
||||
skipNotifier: true
|
||||
});
|
||||
|
||||
// Remove successful deletions from delete log
|
||||
yield Zotero.Sync.Data.Local.removeObjectsFromDeleteLog(
|
||||
|
|
Loading…
Add table
Reference in a new issue