Closed drowe67 closed 2 years ago
Looks like there are a bunch of calls to pConfig->Write() and pConfig->Flush() in ~MainFrame()
, which probably explains the config file coming back. The fix might very well be to not call those if the user already selected Restore Defaults.
That said, it seems weird that one has to restart for a reset to take effect, rather than simply setting all configuration options to their default values.
Tested 5ecb957a on Ubuntu 20
~/.freedv
is deleted.~/.freedv
is restored.I think it's something to do with the wxWidgets DeleleAll() function. This deletes the disk file, but then something in the shut down code must be reconstructing it.