手动勾选完成与专注完成统一口径:完成一次即从未完成列表消失

This commit is contained in:
XIGE
2026-12-04 08:36:48 +08:00
parent 9f8714c2b6
commit 94c22bf59c
5 changed files with 43 additions and 15 deletions

View File

@@ -209,7 +209,7 @@ object TimerCore {
)
}
// 与「提前完成」同一口径:这一轮跑完就是这条任务本轮结束
runCatching { Store.finishSeriesByFocus(taskId) }
runCatching { Store.finishSeries(taskId) }
}
round += 1
}
@@ -487,7 +487,7 @@ object TimerCore {
seconds = elapsed,
)
}
runCatching { Store.finishSeriesByFocus(taskId) }
runCatching { Store.finishSeries(taskId) }
}
}
running = false
@@ -553,7 +553,7 @@ object TimerCore {
// 完成按钮 = 这次任务做完了:系列里所有待办行(根 + 当前轮实例)一起收尾,
// 未完成列表不再残留自动生成的实例;重复任务跨零点后
// rollRepeatingTasks 会按周期生成新实例,节奏不受影响
Store.finishSeriesByFocus(taskId)
Store.finishSeries(taskId)
}
clearRoundNotes()
running = false
@@ -635,7 +635,7 @@ object TimerCore {
// 与「提前完成」同一口径:一轮专注跑完 = 这条任务本轮结束。
// 收掉系列全部待办行(根 + 当前轮实例),不标记的话会出现
// 「专注页已完成、任务页仍挂一条未完成」的两套状态。
if (taskId > 0) runCatching { Store.finishSeriesByFocus(taskId) }
if (taskId > 0) runCatching { Store.finishSeries(taskId) }
clearRoundNotes()
round += 1
}