mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
CodeRabbit on #9606 (inline 4373831220): prefs.set or a reset changed the stored Color panel options, and the next frame's persist wrote the panel's stale options back over them. persist now remembers what it last synced; a stored value that differs from it came from outside and is taken into the live panel. An empty value (a reset) restores the defaults. Also covers the Color panel in the dock lifecycle test (CodeRabbit nitpick), which runs real frames and a preferences JSON round trip. Tests: an_outside_preference_change_reaches_the_live_panel, dragging_the_splitter_resizes_and_survives_a_ui_state_round_trip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>