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

refactor: use QSettings::clear() for reset settings #87

Merged
merged 3 commits into from
Jan 11, 2020

Conversation

ouuan
Copy link
Member

@ouuan ouuan commented Jan 11, 2020

Sinces all defaults are in the "get" functions, a simple clear()
should do the resetting well.

What's more, this fixes the bug that unused settings won't be cleared.

For example, there is still "compile" without "cpp" in my ini file.

Sinces all defaults are in the "get" functions, a simple clear()
should do the resetting well.

What's more, this fixes the bug that old settings won't be cleared.

For example, there is still "compile" without "cpp" in my ini file.
@caretaker-claire
Copy link

Hi ouuan
Thank you for your contribution to cp-editor. I will request a review from one of the contributor. Once they approves and all CI checks passes, I will merge your Pull Request.

@coder3101
Copy link
Member

Please resolve this conflict.

@coder3101 coder3101 merged commit 30a22da into cpeditor:master Jan 11, 2020
@ouuan ouuan deleted the reset-settings branch January 12, 2020 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants