From 26819eb8d06ca4807d9c243dc5e613b28c4c969a Mon Sep 17 00:00:00 2001 From: Nikola Bucic Date: Wed, 15 Jul 2026 18:52:54 +0200 Subject: [PATCH] fix: forward keepScreenOn in settingsLoaded dispatches --- app/Livewire/TimerScreen.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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