We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3d5137 commit 11ec03aCopy full SHA for 11ec03a
1 file changed
Calendar-Pomodoro/components/CalendarTimerView.tsx
@@ -997,6 +997,16 @@ export function CalendarTimerView() {
997
await clearNotifications();
998
await endLiveActivity(activeTask, now, total);
999
await persistSessionState(null);
1000
+
1001
+ // 取消后不应保留本次会话草稿,避免下次启动同任务时带出旧笔记。
1002
+ setTasks((prev) => {
1003
+ const next = prev.map((t) =>
1004
+ t.id === activeTask.id ? { ...t, noteDraft: "" } : t,
1005
+ );
1006
+ void saveTasks(next);
1007
+ return next;
1008
+ });
1009
+ setNoteDraft("");
1010
}
1011
1012
async function stopTimer(options?: { auto?: boolean }) {
0 commit comments