Commit Graph

2970 Commits

Author SHA1 Message Date
Philipp Wolfer
727a2e5e57 PICARD-2791: Prevent panes of options window being fully collapsible
Prevents users accidentally hiding a pane without knowing how to get it back.
2023-12-18 08:33:31 +01:00
Philipp Wolfer
bce6214695 PICARD-2795: Display currently selected verbosity in log view 2023-12-15 17:45:00 +01:00
Bob Swift
8c34b15a61 Simplify description of "Use track relationships" option setting 2023-10-18 19:22:36 +02:00
Bob Swift
4f40749aa6 Update metadata option screen to clarify relationship selections 2023-10-18 19:22:36 +02:00
Philipp Wolfer
c0e8e2eaae Show placeholder if cover image format is unsupported 2023-10-10 16:18:35 +02:00
Philipp Wolfer
2381b64e35 Revert accidental translatable string change 2023-09-25 15:40:20 +02:00
Laurent Monin
f2da2b7234 Import RELEASE_* directly from respective files
Add a TODO about removing imports from `const/__init__.py`
2023-09-25 14:25:10 +02:00
Philipp Wolfer
fb7ddcc394 Fixed tabulator order in option pages 2023-09-25 07:56:08 +02:00
Laurent Monin
713c4355e7 More consistent string quoting 2023-09-25 07:44:18 +02:00
Bob Swift
7ea8e04f85 Get option group name from parent page name if appropriate 2023-09-25 07:33:36 +02:00
Bob Swift
0b8ed2f5d1 Hide individual update items but leave plugins update check visible 2023-09-23 01:18:06 +02:00
Philipp Wolfer
6a4b869976 Plugins options: Add some spacing between buttons 2023-09-18 16:24:35 +02:00
Philipp Wolfer
c6f7fe5558 PICARD-1377: Use shared icons for plugin UI, use separate icons for dark mode 2023-09-14 18:13:08 +02:00
Philipp Wolfer
9053267bc7 PICARD-1377: Use new plugin icons in UI 2023-09-14 18:12:54 +02:00
Laurent Monin
cfd5753654 Replace get_selected_types_*() with properties and shorten lines 2023-09-13 18:12:37 +02:00
Laurent Monin
db0ccaf131 Replace CAATypesSelectorDialog.run() static method with module level function
New function is named display_caa_types_selector()
All keyword arguments are passed to CAATypesSelectorDialog constructor
2023-09-13 18:03:22 +02:00
Laurent Monin
091871d358 Move CAA types selector to a separate file 2023-09-13 17:17:41 +02:00
Philipp Wolfer
d89934e96c Completely moved plugin update UI handling out of pluginmanager 2023-09-12 18:57:05 +02:00
Philipp Wolfer
952e34e506 Moved PluginUpdatesDialog into picard.ui 2023-09-12 18:57:05 +02:00
Philipp Wolfer
f69eda2d14 Format playback rate in player toolbar locale aware 2023-09-11 14:36:46 +02:00
Philipp Wolfer
9f7ae34bf4 Fixed regresson in script editor
Revert use of qlistwidget_items for getting the script list, as this
is a QComboBox and not QListWidget.
2023-09-08 15:35:24 +02:00
Laurent Monin
268eeed588 Use qlistwidget_items() where applicable 2023-09-07 16:39:34 +02:00
Laurent Monin
b7a6d5b2bd Introduce helper function qlistwidget_items()
Iterating through a QListWidget is quite common in the code, this generator
makes things simpler.
2023-09-07 14:52:02 +02:00
Laurent Monin
546d779ec6 _load_cover_art_providers(): use an intermediate variable to shorten lines
Not strictly needed but more readable.
2023-09-07 14:13:40 +02:00
Laurent Monin
5e64ed0f88 Make _ca_providers() a generator 2023-09-07 13:48:13 +02:00
Laurent Monin
6a196de391 ca_providers() -> _ca_providers()
Make it private and move it just before `save()` where it is used.
2023-09-07 13:48:13 +02:00
Laurent Monin
8a0c491b58 load_cover_art_providers() -> _load_cover_art_providers()
Make "private" since it is only used by `load()` and move it just before it
2023-09-07 13:48:13 +02:00
Laurent Monin
971d88e71b Rename id to profile_id where applicable
`profile_id` is explicit.
`id()` is a built-in function, see https://docs.python.org/3.10/library/functions.html#id
2023-09-07 06:15:05 +02:00
Philipp Wolfer
52e71fb082 Fixed prospector warnings
- invalid escape sequence
- variable used before assignment
2023-09-03 18:59:01 +02:00
Philipp Wolfer
0bb7c7da72 Re-added "Listening on port" translation 2023-08-27 15:05:29 +02:00
Philipp Wolfer
d88f6c8131 Various code cleanups 2023-08-25 12:22:10 +02:00
Philipp Wolfer
f6d62fe918 Use named placeholders in translated strings
For multiple placeholders this allows changing the order in translation.
The name also generally makes it easier for the translator to understand
the string.
2023-08-25 12:22:10 +02:00
Philipp Wolfer
83f6b6fc93 PICARD-2690: Move picard/const translations into separate message domain
This most prominently moves translations of dropdown lists for locales
and writing systems into a separate component, making it easier to
translate the main UI texts.
2023-08-24 17:36:42 +02:00
Philipp Wolfer
14a719e037 Replaced three dots with ellipsis in UI strings 2023-08-23 10:25:34 +02:00
Philipp Wolfer
6fbea4ca55 Replaced spaces around "listening port label" with margin
This avoids common mistakes in translations and makes translation easier.
2023-08-23 08:41:13 +02:00
Laurent Monin
6e3a20c901 Fix trailing space after colon 2023-08-22 17:15:54 +02:00
Bob Swift
67fdc15b9b Show plugins with updates and add option to open plugin options window 2023-08-15 10:33:29 -06:00
Philipp Wolfer
c2639c4d29 Disable plugin updates by default 2023-08-15 11:26:43 +02:00
Philipp Wolfer
a23cd952a7 Reduce code duplication in itemview drag handlers 2023-08-14 18:17:43 +02:00
Philipp Wolfer
90759d026a Handle Qt drag and drop IgnoreAction
Also ensure dragEnterEvent and dragMoveEvent indicate the actually
performed action (copy in our case). This influences the icon shown
to the user while dragging. On Windows this will then show the actual
copy icon even if the user has modifiers pressed.
2023-08-14 18:17:43 +02:00
Philipp Wolfer
0c6e82c828 Consistent spelling of "startup" in update checks 2023-08-14 16:40:47 +02:00
Philipp Wolfer
ddc695cecc PICARD-2696: Fix file deletion when shift-dropping files on Windows
When dropping while pressing shift on Windows the files get sent as a
"move" event to the application. Accepting this results in file deletion.
Picard must always handle such events as "copy" to avoid this.
2023-08-13 11:25:57 +02:00
Bob Swift
0ccd878c94 PICARD-1815: Add option to notify user at startup if plugin updates are available (#2266)
* Add option to notify user at startup if plugin updates are available

* Include new option setting in option profile

* Move code to new _plugins_have_new_versions() and tidy up _display_update()

---------

Co-authored-by: Laurent Monin <github@norz.org>
2023-08-02 11:15:03 -06:00
Laurent Monin
eba178955c OptionsDialog: add suspend_signals property in order to avoid double page.load() calls
It fixes the actual issue with Restore all Defaults, which was caused by a double call to load(), once with default value, once with current value.
It was cancelling the change to defaults.
2023-07-30 22:04:43 +02:00
Laurent Monin
00eaf13da7 Ensure valid values in all cases for Check Update Level combo box 2023-07-30 22:04:43 +02:00
Laurent Monin
bb3e2945f5 General options: always load/save options even if the section is disabled in UI 2023-07-30 22:04:43 +02:00
Laurent Monin
c9432a2468 restore_page_defaults(): avoid calling Options.Page.load() twice 2023-07-30 22:04:43 +02:00
Laurent Monin
24765f5ad4 restore_all_defaults(): catch exception in case of failure to load a page
Such catch is done in load_all_pages(), so it makes sense to do it there too.
2023-07-30 22:04:43 +02:00
Laurent Monin
126e23d83f OptionsPage.restore_defaults(): add debug log output 2023-07-30 22:04:43 +02:00
Laurent Monin
59fc378de0 Only write to config setting and old_options if needed 2023-07-30 22:04:42 +02:00