v3.19 任务页显示规则重写:按系列归并一行、完成即闭环、默认时间今天

This commit is contained in:
XIGE
2026-12-02 17:08:50 +08:00
parent 45c6b4fdbf
commit e0beddaaf5
9 changed files with 190 additions and 19 deletions

View File

@@ -208,6 +208,8 @@ object TimerCore {
seconds = seconds,
)
}
// 与「提前完成」同一口径:这一轮跑完就是这条任务本轮结束
runCatching { Store.setTaskDone(taskId, true) }
}
round += 1
}
@@ -612,6 +614,9 @@ object TimerCore {
)
}
}
// 与「提前完成」同一口径:一轮专注跑完 = 这条任务本轮结束。
// 不标记的话会出现「专注页已完成、任务页仍挂一条未完成」的两套状态。
if (taskId > 0) runCatching { Store.setTaskDone(taskId, true) }
clearRoundNotes()
round += 1
}