1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Fixed sync cancel

This commit is contained in:
Laurent Cozic
2017-07-26 21:09:33 +01:00
parent 971c3e12dc
commit 76a9264239
5 changed files with 74 additions and 4 deletions

View File

@ -136,7 +136,7 @@ class Synchronizer {
}
cancel() {
if (this.cancelling_) return;
if (this.cancelling_ || this.state() == 'idle') return;
this.logSyncOperation('cancelling', null, null, '');
this.cancelling_ = true;