Commit Graph

8170 Commits

Author SHA1 Message Date
Bob Swift
3eee2ecff9 Make rename_option() also update option name in profile settings 2021-06-25 11:12:25 -06:00
Bob Swift
68b39ecc0b Use self.__qt_config when checking profiles and profile settings. 2021-06-25 03:38:53 -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
7284904925 Retain selections tree expanded state between selected profiles. 2021-06-24 16:15:54 -06:00
Bob Swift
20ca5ec529 Add tests 2021-06-24 15:21:25 -06:00
Bob Swift
583058ef05 Add user profile editor dialog (WIP) 2021-06-24 09:50:27 -06:00
Bob Swift
16e6a9439b Make keys into class constants 2021-06-24 07:29:27 -06:00
Bob Swift
e9a90cfeb6 Clean up saving profile settings updates. Reduce duplication. 2021-06-23 09:16:37 -06:00
Bob Swift
ea4fec1b3c Store profile list and profile settings separately 2021-06-22 11:09:50 -06:00
Bob Swift
21c7804f12 Refactor and use sets to combine settings 2021-06-21 14:54:10 -06:00
Bob Swift
f30ea31c1e Change variable and method names for clarification and add docstring 2021-06-21 11:22:36 -06:00
Bob Swift
eba6306d7e Refactor. Correct problem getting value from a profile. 2021-06-21 08:27:12 -06:00
Bob Swift
405ad2a240 Create subclass of ConfigSection to support user profiles 2021-06-20 18:36:36 -06:00
Philipp Wolfer
8ce7fdc850 Removed left-over Python 2 Unicode string modifiers 2021-06-19 14:14:40 +02:00
Philipp Wolfer
369d60a52b Fixed handling of renaming scripts if no user defined scripts are available
Fixes issues showing options and saving files with fresh picard config.
2021-06-19 13:57:20 +02:00
Philipp Wolfer
b398ee2a56 Merge pull request #1849 from rdswift/open_script_editor_from_main_screen
Show script editor from main screen menu
2021-06-17 16:05:03 +02:00
Bob Swift
e67fac134a Add Option.add_if_missing()` class method 2021-06-17 10:58:26 +02:00
Bob Swift
ba84952416 Add class method to check if Option exists. 2021-06-17 10:58:26 +02:00
Philipp Wolfer
3de3ea333b Update dependencies for release builds 2021-06-17 09:34:07 +02:00
Philipp Wolfer
ab552cf43f Removed additional margins in Options > User interface
Unified the space between control elements
2021-06-17 08:57:16 +02:00
Philipp Wolfer
4c3094a791 Update picard.pot 2021-06-17 08:50:06 +02:00
Philipp Wolfer
02081aa2e7 Nicer rendering of warning box in Options -> General
This improves the visual display especially in dark layouts
2021-06-17 08:49:33 +02:00
Bob Swift
1a4dc32474 Clarify menu option to show opening "file naming script editor" 2021-06-16 12:48:41 -06:00
Bob Swift
61347f0a41 Show script editor from main screen menu 2021-06-16 12:22:36 -06:00
Laurent Monin
236b777b47 Merge pull request #1845 from rdswift/naming_script_quick_selector
Add naming script selector to main window menu bar
2021-06-16 19:58:04 +02:00
Bob Swift
af94a269fd Merge pull request #8 from zas/scriptselectradio
Display radio buttons instead of checkboxes
2021-06-16 11:25:35 -06:00
Laurent Monin
3fdc3290c8 Display radio buttons instead of checkboxes 2021-06-16 19:13:04 +02:00
Bob Swift
a8584917fc Use checkboxes to select current script 2021-06-16 09:21:20 -06:00
Bob Swift
c0d32f67a6 Fix title on presets 2021-06-16 09:21:20 -06:00
Bob Swift
ac3ab4b034 Remove unnecessary options settings 2021-06-16 09:21:20 -06:00
Bob Swift
b959f9b80d Add naming script selector to main window menu bar 2021-06-16 09:21:20 -06:00
Laurent Monin
5c1293e192 Drop multiple declarations of "selected_file_naming_script_id" option 2021-06-16 11:20:41 +02:00
Laurent Monin
a5e5b95090 Drop multiple declarations of "file_renaming_scripts" option 2021-06-16 11:20:41 +02:00
Laurent Monin
662648d2c1 Drop multiple declarations of "oauth_refresh_token" option 2021-06-16 11:20:41 +02:00
Laurent Monin
cd382957c3 Merge pull request #1848 from zas/reliableoptlog
Make duplicated option declaration logging more reliable
2021-06-16 10:58:44 +02:00
Laurent Monin
7cf76b03d8 Make duplicated option declaration logging more reliable
Ensure logging is working, even if stack cannot be retrieved or has no code context
2021-06-16 10:51:17 +02:00
Laurent Monin
5a4776f029 Merge pull request #1846 from zas/optmultideclareerror
Log multiple Option declarations
2021-06-16 10:11:25 +02:00
Laurent Monin
559038677a Log multiple Option declarations
Example of output:

```
E: 09:54:33,561 config.__init__:324: Option setting/file_renaming_scripts already declared
at ./picard/ui/options/renaming.py:92: in RenamingOptionsPage
        Option("setting", "file_renaming_scripts", {}),
```
2021-06-16 10:04:01 +02:00
Philipp Wolfer
6d0a052506 PICRD-257: Added format specific tests for preserve_images
Testing special handling in Vorbis and APEv2 files.
2021-06-16 08:52:55 +02:00
Philipp Wolfer
a3ebc1cb22 PICARD-257: Add option to exclude embedded images from clear_existing_tags 2021-06-16 08:52:55 +02:00
Philipp Wolfer
59a1aa49c3 Update picard.pot 2021-06-15 21:13:07 +02:00
Philipp Wolfer
abc093ea50 PICARD-2232: Update the unofficial server warning text 2021-06-15 21:12:38 +02:00
Philipp Wolfer
539adfd374 Merge pull request #1843 from phw/PICARD-2232-allow-submission-to-mirror
PICARD-2232: Allow add cluster/files and disc ID submission to unofficial servers
2021-06-15 21:05:55 +02:00
Laurent Monin
41d28360a6 get_submission_server(): return a named tuple 2021-06-15 10:18:44 +02:00
Laurent Monin
4c1f4e1f06 get_submission_host() -> get_submission_server() 2021-06-15 10:18:44 +02:00
Philipp Wolfer
8af6346f47 fix tab order 2021-06-15 07:51:07 +02:00
Philipp Wolfer
28a5fc19e5 PICARD-2232: Add option to enable data submission to unofficial server
Show a warning when user configures unofficial server and add an option use_server_for_submission to use this server also for data submission.
2021-06-15 07:51:07 +02:00
Philipp Wolfer
2e4ef20744 PICARD-2232: Add helper functions to get official server for submission
Use those functions in addrelease instead of custom implementation
2021-06-15 07:51:05 +02:00
Bob Swift
512edd656a File naming script metadata editor bug (#1842)
Fix naming script metadata editor
2021-06-15 07:39:54 +02:00
Philipp Wolfer
dedfff538f Update picard.pot 2021-06-14 19:58:32 +02:00