set QSettings account array size when saving #61
Closed
shunf4
wants to merge 1 commits from fix/acc_setting_unsaved
into messageFeed
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'fix/acc_setting_unsaved'
Deleting a branch is permanent. It CANNOT be undone. Continue?
if the app is killed (like, by Windows when shutting down) between
beginWriteArray
endArray
, things can go bad: settingcore/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 asbeginWriteArray
.