Fixed a issue where stop did not reset the timer
This commit is contained in:
2
view.ts
2
view.ts
@@ -127,7 +127,7 @@ export class TaskWeaverView extends ItemView {
|
||||
cls: "taskweaver-timer-control-btn stop"
|
||||
});
|
||||
stopBtn.onclick = async () => {
|
||||
await this.plugin.toggleTaskTimer(task.id);
|
||||
await this.plugin.stopTaskTimer(task.id);
|
||||
};
|
||||
|
||||
const completeBtn = timerControls.createEl("button", {
|
||||
|
||||
Reference in New Issue
Block a user