This commit is contained in:
2026-10-17 20:57:16 +07:00
parent 40456eebf1
commit 1d4028b183
13 changed files with 849 additions and 48 deletions
+9 -1
View File
@@ -208,7 +208,15 @@ export class Controller {
position: 0,
})
}
output(open: boolean) {
output(open: boolean, pauseTimer = false) {
if (!open && pauseTimer && this.state.timer.status === 'running') {
this.updateTimer()
if (this.state.timer.status === 'running') {
this.timerDeadline = null
this.state.timer.status = 'paused'
this.state.timer.revision++
}
}
this.newSession()
this.state.outputOpen = open
this.state.scene.status = open ? 'pending' : 'idle'