Skip to content

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

Open
Titas-Ghosh wants to merge 1 commit intoControlCore-Project:devfrom
Titas-Ghosh:fix/options-modal-state-sync
Open

fix: Persist Options modal state to prevent configuration loss#351
Titas-Ghosh wants to merge 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.

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