Skip to content
Discussion options

You must be logged in to vote

Hi @nlogozzo, the best practice in this case is to save the settings immediately when they're changed (for example, when the user selects light theme, save that setting immediately). That way, if your app crashes or is force closed, the settings will still be saved. Alternatively, you could show the user a "Save" button.

Closing the app via the X button is similar to a force terminate and you shouldn't rely on destructors to be called to save app state.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nlogozzo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants