-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
PICARD-2271: Add Options page to allow removing unused settings from INI file. #1893
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the feature.
- Move `import` to top of module. - Refactor to remove `_add_options_from_page()` method. - Use standard QSettings methods to get `file_options` set. - Add comment explaining the calculation for `row_height`.
- Use more descriptive variable name `option_name`. - Set value as PlainText. - Store option keys as `UserRole` data. - Remove redundant (default) options to `QMessageBox`. - Use `repr()` to return option values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, good work. Amazing what stuff I found in my config file :)
I'd just move it under the Advanced section, what do you think?
Me too. It's amazing all the stuff that accumulates in your test configuration file during development. 😜
Perfect! I'll make the change right away. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
23b141d
to
d53ffa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Problem
Over the course of trying out plugins and such, the configuration INI file can become bloated with orphaned settings.
Solution
Provide a new Options page (called "Maintenance") that lists all orphaned settings found in the INI file, and allows the user to mark the settings for deletion.
This allows you to remove unused option settings from the configuration file.
Settings that are found in the configuration file that do not appear on any option settings page will be listed. If the configuration file does not contain any unused option settings, then the list will be empty.
Note that unused option settings could come from plugins that have been uninstalled, so care must be taken to not remove settings that you may want to use later when the plugin is reinstalled. Options belonging to plugins that are installed, including those that are currently disabled, will not be listed for possible removal.
To remove one or more settings, select the settings to remove by checking the box next to the setting, and then enable the removal by checking the
Remove selected options
box. When you chooseMake It So!
to save your option settings, the selected items will be removed.Action
If this change is accepted, the documentation will need to be updated.