Skip to content

Fix edit & delete in the --setup screen - #252

Merged
gi-dellav merged 1 commit into
gi-dellav:mainfrom
thomasjfox:setup-fix-save
Aug 8, 2026
Merged

gi-dellav merged 1 commit into
gi-dellav:mainfrom
thomasjfox:setup-fix-save

Conversation

@thomasjfox

Copy link
Copy Markdown
Contributor

Fix edit & save in the --setup screen. Noticed on first time use and I thought I was going crazy why it didn't save. 😀

Detailed description of the change in the commit message. I tried to keep the edit minimal.

Edits and deletes in the manage screens mutate a local Config but then
return KeyResult::Screen, which only swaps the screen and discards the
Config -- the in-memory Ctx keeps the old value, so changes vanish
before save_config runs on exit.

Add a KeyResult::ApplyConfig(Screen, Config) variant that writes the
mutated Config back into Ctx, and route the save and delete-confirmed
branches through it. No-op navigation keeps using KeyResult::Screen.

Also relabel the main-menu entry from "Q) Quit" to "Q) Quit & Save" to
make the persist-on-exit behavior discoverable.
@gi-dellav
gi-dellav merged commit 6aef87b into gi-dellav:main Aug 8, 2026
@thomasjfox
thomasjfox deleted the setup-fix-save branch August 8, 2026 21:11
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