Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restoring of cache settings (SettingsCache::loadToSettings) is not reliable #262

Open
tsujan opened this issue Jul 6, 2020 · 0 comments
Labels

Comments

@tsujan
Copy link
Member

tsujan commented Jul 6, 2020

SettingsCache::loadToSettings() restores the current values but if new keys have been added to the setting, it couldn't remove them.

Because of the internal cache used by Qt itself, using QSettings::clear() at the beginning of SettingsCache::loadToSettings() won't have any effect, even if QSettings::sync() comes after it.

I've encountered the problems caused by Qt's internal cache in one of my apps; they are very annoying. But GLib's Key-value file parser is completely reliable. So, I propose that we use it instead of QSettings in SettingsCache.

Context: I encountered the problem while fixing lxqt/lxqt#1513 (the reset button).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant