You've already forked joplin
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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user