mirror of
https://github.com/Anthonyy232/Paperize.git
synced 2026-03-13 10:04:27 +08:00
When user changes which screens are enabled (homeEnabled/lockEnabled), clear all album selections to ensure clean state: **Scenarios where albums are cleared:** - Lock only → Both screens enabled - Home only → Both screens enabled - Both screens → Lock only - Both screens → Home only - Lock only → Home only (both toggles change) **Why this is needed:** - Album requirements change when switching between single/dual screen modes - Both screens enabled requires TWO albums selected - Single screen requires ONE album selected - Clearing prevents invalid state where old selections don't match new requirements **Implementation:** - Detect when homeEnabled or lockEnabled changes in updateScheduleSettings() - If screen toggles changed, clear both homeAlbumId and lockAlbumId - Apply validation to cleared settings - Auto-toggle logic will disable changer (no albums selected) - User must select appropriate albums for new screen configuration **User flow:** 1. User toggles screen on/off 2. Albums automatically cleared 3. Changer disabled (no albums) 4. User selects new albums 5. Changer re-enabled with correct albums This ensures users always have the correct album setup for their chosen screen configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>