set QSettings account array size when saving #61

Closed
shunf4 wants to merge 1 commits from fix/acc_setting_unsaved into messageFeed
shunf4 commented 7 months ago

if the app is killed (like, by Windows when shutting down) between beginWriteArray endArray, things can go bad: setting core/accounts/size is not written, then next time squawk launches, the account array becomes empty.

So it's better we set the size of core/accounts array as early as beginWriteArray.

if the app is killed (like, by Windows when shutting down) between `beginWriteArray` `endArray`, things can go bad: setting `core/accounts/size` is not written, then next time squawk launches, the account array becomes empty. So it's better we set the size of `core/accounts` array as early as `beginWriteArray`.
shunf4 added 1 commit 7 months ago
blue closed this pull request 6 months ago
This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.