diff --git a/app/Livewire/TimerScreen.php b/app/Livewire/TimerScreen.php index f108f18..e0b71ec 100644 --- a/app/Livewire/TimerScreen.php +++ b/app/Livewire/TimerScreen.php @@ -85,7 +85,7 @@ public function loadProgram(string $id): void $this->syncCursor($runner->cursor(), $program); $this->dispatch('topbar-title', title: $program->name); - $this->dispatch('settingsLoaded', soundMode: $this->soundMode, volume: $this->volume, program: $program); + $this->dispatch('settingsLoaded', soundMode: $this->soundMode, volume: $this->volume, keepScreenOn: $this->keepScreenOn, program: $program); } public function discard(): void @@ -166,7 +166,7 @@ public function tick(): void public function requestSettings(): void { $program = $this->programId ? Program::with('phases')->find($this->programId) : null; - $this->dispatch('settingsLoaded', soundMode: $this->soundMode, volume: $this->volume, program: $program); + $this->dispatch('settingsLoaded', soundMode: $this->soundMode, volume: $this->volume, keepScreenOn: $this->keepScreenOn, program: $program); } public function render(): View