Skip to content

fix: forward keepScreenOn in settingsLoaded dispatches#22

Merged
nbucic merged 1 commit into
masterfrom
claude/fix-keepscreenon-forwarding
Jul 15, 2026
Merged

fix: forward keepScreenOn in settingsLoaded dispatches#22
nbucic merged 1 commit into
masterfrom
claude/fix-keepscreenon-forwarding

Conversation

@nbucic

@nbucic nbucic commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

loadProgram() and requestSettings() both dispatch settingsLoaded to sync the JS audio/wake-lock layer, but neither included keepScreenOn. The JS handler reads this value to decide whether to acquire the wake lock — without it, the wake lock stays in whatever state it was previously set to, which can be wrong after loading a program or refreshing settings.

Two-line change in app/Livewire/TimerScreen.php:

  • loadProgram(): dispatch('settingsLoaded', ..., keepScreenOn: $this->keepScreenOn, ...)
  • requestSettings(): same

This was the only salvageable fix from PR #10 that wasn't already in PR #11 (now merged).


Generated by Claude Code

@nbucic
nbucic merged commit 4d5c8ff into master Jul 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant