Auto commit Sat Apr 4 08:01:01 AM CDT 2026

This commit is contained in:
Tretzi
2026-04-04 08:01:01 -05:00
parent 11445d10dd
commit f10df4813f
3 changed files with 74 additions and 2 deletions

View File

@@ -11,3 +11,10 @@ fun sessionProgressFraction(durationSec: Int, remainingSec: Int): Float {
val elapsed = (total - remainingSec).coerceIn(0, total)
return elapsed.toFloat() / total.toFloat()
}
fun shouldRequireStopConfirmation(runtimeState: RuntimeState): Boolean {
return runtimeState == RuntimeState.COUNTDOWN ||
runtimeState == RuntimeState.RUNNING ||
runtimeState == RuntimeState.PAUSED ||
runtimeState == RuntimeState.INTERRUPTED
}