Fix: add sync lock check to closeTask and repoenTask

This commit is contained in:
HeroBlackInk 2026-02-17 16:55:45 +08:00
parent 1fee95c5ee
commit ac849a8709

View file

@ -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 {