mirror of
https://github.com/heroblackink/ultimate-todoist-sync-for-obsidian.git
synced 2026-07-22 07:40:27 +00:00
Fix: add sync lock check to closeTask and repoenTask
This commit is contained in:
parent
1fee95c5ee
commit
ac849a8709
1 changed files with 2 additions and 0 deletions
2
main.ts
2
main.ts
|
|
@ -548,8 +548,10 @@ export default class UltimateTodoistSyncForObsidian extends Plugin {
|
|||
//console.log(taskId)
|
||||
//const view = this.app.workspace.getActiveViewOfType(MarkdownView);
|
||||
if (target.checked) {
|
||||
if (!await this.checkAndHandleSyncLock('obsidianToTodoist')) return;
|
||||
this.todoistSync.closeTask(taskId);
|
||||
} else {
|
||||
if (!await this.checkAndHandleSyncLock('obsidianToTodoist')) return;
|
||||
this.todoistSync.repoenTask(taskId);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue