Paul Licameli
2017-01-01 19:09:06 UTC
On the hypothesis that the bug results from writing and replacing
audacity.cfg too often, I wrote this small change which ignores
gPrefs->Flush() and writes the file only when the application exits.
That may be too extreme, making preferences changes vulnerable to loss if
the application crashes or is force-quit, but we might start by testing
this extreme. Then the line I added to QuitAudacity is easily added in
whatever few other places we decide to flush for real.
https://github.com/Paul-Licameli/audacity/commit/1a807a660bd307f554ad3978cb2cbcbca46de8f2
audacity.cfg too often, I wrote this small change which ignores
gPrefs->Flush() and writes the file only when the application exits.
That may be too extreme, making preferences changes vulnerable to loss if
the application crashes or is force-quit, but we might start by testing
this extreme. Then the line I added to QuitAudacity is easily added in
whatever few other places we decide to flush for real.
https://github.com/Paul-Licameli/audacity/commit/1a807a660bd307f554ad3978cb2cbcbca46de8f2