Repository navigation
Conversation
Settings are currently only written when the application becomes inactive or quits (see CSettings). Anything that ends the process before that, for example a crash or the application being killed, discards the changes the user just made, including the musician profile, the audio device configuration and the language. Write them as well when the settings dialog is hidden, which covers closing it from the menu, from the check box and during shutdown.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Not 100% sure about this one, might need more investigation. |
|
|
||
| void CClientSettingsDlg::hideEvent ( QHideEvent* event ) | ||
| { | ||
| // store the settings when the dialog is closed, so that they survive the |
There was a problem hiding this comment.
| // store the settings when the dialog is closed, so that they survive the | |
| // store the settings when the dialog is hidden, so that they survive the |
Short description of changes
Write the settings when the settings dialog is hidden, so that they are not lost when the application is terminated before it becomes inactive.
CSettingswrites the ini file when the application becomes inactive or quits. Anything that ends the process before that — a crash, or the app being killed — discards whatever the user just configured: alias, instrument, audio device, buffer delay, language, MIDI settings.CClientSettingsDlg::hideEvent()now callsCSettings::Save ( false ). That covers closing the dialog from its menu, unticking the Settings check box, and the hide during shutdown.CHANGELOG: Client: Fixed settings being lost when the application is closed unexpectedly
Context: Fixes an issue?
Fixes #3994 (second item).
Measured on the iOS simulator with
Jamulus.ini:name_base64before the changeNo NameBgTestPer)simctl terminate, relaunchDoes this change need documentation? What needs to be documented and how?
No.
Status of this Pull Request
Working implementation.
What is missing until this pull request can be merged?
maindoes not launch on iOS with Qt 6 without it.