Commit Graph

10 Commits

Author SHA1 Message Date
Philipp Wolfer
797b296396 Optimize access to profile settings
On every settings read / write access the list of profile setting names got compiled again. This list does not change on runtime, so instead compute it only once.
2022-04-09 16:54:52 +02:00
Bob Swift
d0d5fc90d3 Add profile and settings override tests for config.setting 2021-08-05 13:02:17 -06:00
Bob Swift
a22cce8c21 Save options to first enabled profile:
- Save to first enabled profile, with "User base settings" as fallback
- Display note if any profiles are enabled
- Highlight options for all enabled profiles
- Add tooltip to options showing which profile will be updated
- Update tests to remove deleted functionality
2021-08-03 15:35:46 -06:00
Bob Swift
a205f7ee49 Highlight items in Options dialog when profile is selected for output 2021-07-23 17:01:07 -06:00
Bob Swift
3f832f98eb Add more tests and show profile stack in comments after each change 2021-07-14 09:57:31 -06:00
Bob Swift
377c2f3561 Allow saving options settings to specified profile 2021-07-10 14:35:39 -06:00
Bob Swift
c046c0ad23 Miscellaneous style cleanup items
In `picard/ui/profileeditor.py`:
- Remove unnecessary `deepcopy()`.
- Use `set.difference()` for comparing key sets.
- Add explanation for creating missing key in
`get_settings_for_profile()` method.
- Move `settings` declaration into `if` section where it is used.
- Remove unnecessary `.keys()` call when creating set of profile IDs.
- Use `set.difference()` for comparing setting sets.
- Remove unnecessary `self.loading` check.
- Add class constant for which QTreeWidgetItem column to use.

In test/test_profiles.py:
- Use keys defined in `SettingConfigSection` class.
2021-06-26 08:51:12 -06:00
Bob Swift
ec176d5ce9 Fix KeyError and add tests 2021-06-25 12:20:06 -06:00
Bob Swift
2ea04a49cb Move profiles to config.profiles. Need to resolve failing tests. 2021-06-24 21:20:48 -06:00
Bob Swift
20ca5ec529 Add tests 2021-06-24 15:21:25 -06:00