matcha
matcha copied to clipboard
BUG: Ignored SaveConfig errors in settings UI handlers
Describe the bug
In multiple settings handlers, config.SaveConfig() errors are explicitly ignored with _ = config.SaveConfig(m.cfg):
- tui/settings_crypto.go:79
- tui/settings_lists.go:18
- tui/settings_theme.go:30
- tui/settings_general.go:73, 76, 79, 89, 103
User changes settings, save silently fails, user thinks changes persisted.
To reproduce
- Change a setting when config file is read-only
- No error shown to user
- Setting reverts on restart
Expected behavior
Display an error message to user when config save fails.
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.