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

Fixed editing notes

This commit is contained in:
Laurent Cozic
2017-10-14 19:03:23 +01:00
parent 4f1133c59a
commit dcacebf216
11 changed files with 147 additions and 66 deletions

View File

@ -136,11 +136,20 @@ class Synchronizer {
return false;
}
cancel() {
async cancel() {
if (this.cancelling_ || this.state() == 'idle') return;
this.logSyncOperation('cancelling', null, null, '');
this.cancelling_ = true;
return new Promise((resolve, reject) => {
const iid = setInterval(() => {
if (this.state() == 'idle') {
clearInterval(iid);
resolve();
}
}, 100);
});
}
cancelling() {