Skip to content

fix: Persist Options modal state to prevent configuration loss#351

Merged
pradeeban merged 1 commit intoControlCore-Project:devfrom
Titas-Ghosh:fix/options-modal-state-sync
Mar 1, 2026
Merged

fix: Persist Options modal state to prevent configuration loss#351
pradeeban merged 1 commit intoControlCore-Project:devfrom
Titas-Ghosh:fix/options-modal-state-sync

Conversation

@Titas-Ghosh
Copy link

@Titas-Ghosh Titas-Ghosh commented Feb 27, 2026

Fixes #350
This PR ensures the Options modal preserves user configurations by syncing form fields with the superState upon opening. It prevents the previous behavior where simply viewing settings would silently reset them to hardcoded defaults.

Changes

  • Hydration Logic: Added a useEffect hook in OptionsModal.jsx to populate local state from current application values.
  • Synced Fields: unlock, docker, octave, params, maxTime, and library now correctly persist.

made sure that the npm run build is passing ,changes are only isolated to OptionsModal.jsx.

@pradeeban pradeeban merged commit 3ce7520 into ControlCore-Project:dev Mar 1, 2026
1 check 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.

2 participants