up
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user