18 Commits

Author SHA1 Message Date
Laurent Monin
34b046fe31 Drop class UserProfileGroups, use module level methods 2024-04-26 16:54:54 +02:00
Laurent Monin
5540f2fa0e More consistent naming 2024-04-26 16:22:08 +02:00
Laurent Monin
5edad5d440 SettingDesc.fields -> SettingDesc.highlights, more consistent 2024-04-26 16:21:51 +02:00
Laurent Monin
784fae9c59 Fix up and add tests for UserProfileGroups 2024-04-26 15:06:45 +02:00
Laurent Monin
380f67093f Get rid of register_profile_highlights()
Use UserProfileGroups.append_to_group() directly
2024-04-26 12:36:03 +02:00
Laurent Monin
7a0658d72c Rework UserProfileGroups and fix tests 2024-04-25 19:26:39 +02:00
Laurent Monin
13b8fe1132 Remove titles from profiles 2024-04-13 14:09:30 +02:00
Bob Swift
bcb98d6665 Add check for missing profile_id keys 2023-09-22 06:59:41 +02:00
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