Commit Graph

10506 Commits

Author SHA1 Message Date
Laurent Monin
13b8fe1132 Remove titles from profiles 2024-04-13 14:09:30 +02:00
Laurent Monin
45a21a9081 Set titles in Option declarations 2024-04-13 14:09:30 +02:00
Laurent Monin
8049aaa899 Use Option title in Profiles Option dialog 2024-04-13 14:09:30 +02:00
Laurent Monin
006944294e Add option.get_title() method
Similar to Option.get_default()
2024-04-13 14:09:30 +02:00
Laurent Monin
94189f8ecf Option: Add support for an optional title 2024-04-13 14:09:30 +02:00
Laurent Monin
93623cb8d3 Merge pull request #2399 from zas/improve_changes_on_restart
Improve changes applied on restart dialog
2024-04-12 16:52:41 +02:00
ShubhamBhut
48aa24ecf8 PICARD-2580: Add keyboard shortcut for Artwork/Show more details 2024-04-12 16:06:42 +02:00
Laurent Monin
490ce9daf8 Use changes_require_restart_warning() in Interface Colors 2024-04-12 15:11:55 +02:00
Laurent Monin
86e43780b8 Improve changes applied on restart dialog
- display all changes as a list (it fixes an issue where if you changed both theme and language only warning about theme was displayed)
- reformat using richtext
- use an actual warning dialog
- modifies the API so we can pass multiples warnings and notes
- make title and last sentence fixed
- since we detect changes in options not need to write to them if unchanged
2024-04-12 15:07:37 +02:00
Laurent Monin
fb91b929da Merge pull request #2398 from zas/fix_picard_module_path
Fix inconsistency in picard_module_path
2024-04-12 13:39:41 +02:00
Laurent Monin
b282a593ae Fix inconsistency with relative paths
`picard_module_path` can be a file path or a dir path.
When it's a frozen package, that's always a directory, and when running from source it is always a file path.

Ensure it is always a directory (that is the parent of the file path if it happens)
2024-04-12 12:26:56 +02:00
Laurent Monin
607f923dec Merge pull request #2391 from zas/debug_replies
Add a way to select extra debug output
2024-04-12 10:32:41 +02:00
Laurent Monin
6598f01e1f Merge pull request #2395 from zas/network_cache_size_option
PICARD-2855: Let the user configure network cache size via Network Options
2024-04-12 10:31:54 +02:00
Laurent Monin
61dbae164b Add a way to select extra debug output
Web service replies can be very long, and it makes debug output rather hard to read.

A debug option mechanism is now added, it is controlled by a new class
`DebugOpt`.

A command-line option `--debug-opts` allows selection of extra debug
output, for now the sole option is `ws_replies`.

A matching menu was added in View Debug Log dialog.

It is important to note those aren't saved in config file, as they are
meant to be disabled by default and only enabled when needed.
2024-04-12 10:21:51 +02:00
Laurent Monin
839e02f154 Webservice: split set_cache() in _init_cache() and set_cache_size()
- changing the cache size can be done dynamically
2024-04-12 10:16:38 +02:00
toineenzo
f9e38eaeba Translated using Weblate (Dutch)
Currently translated at 99.6% (1173 of 1177 strings)

Co-authored-by: toineenzo <toinerademacher@hotmail.com>
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/nl/
Translation: Picard/App
2024-04-12 01:28:58 +00:00
Philipp Wolfer
265aedae93 Merge pull request #2396 from zas/log_test
Add tests for `log.name_filter()`
2024-04-11 18:29:24 +02:00
Laurent Monin
e6c65b7f52 network_cache_size_bytes == 0 will totally disable the cache 2024-04-11 10:34:23 +02:00
Laurent Monin
40856d9875 Add new option network_cache_size_bytes to profiles 2024-04-11 10:21:19 +02:00
Laurent Monin
c5a64d4e50 Unify Win/Posix output 2024-04-10 18:29:41 +02:00
Laurent Monin
6fbf76b075 Add win-specific tests 2024-04-10 18:12:39 +02:00
Laurent Monin
aad9be0088 Correctly handle __init__ within path (unlikely, but...) 2024-04-10 18:03:21 +02:00
Laurent Monin
577c90928f Do not run test on Win (yet) 2024-04-10 17:58:57 +02:00
Laurent Monin
9804f736df Fix weird case 2024-04-10 17:49:23 +02:00
Laurent Monin
6d5bb0ccfc Use PurePosixPath 2024-04-10 17:42:58 +02:00
Laurent Monin
2fbeceb9dc Add tests for log.name_filter() 2024-04-10 17:36:58 +02:00
Laurent Monin
b379abd7fb Fix up tests 2024-04-09 18:02:15 +02:00
Laurent Monin
ff238e2b62 Let the user configure network cache size via Network Options 2024-04-09 17:47:00 +02:00
Vac31
0a36d1e0d5 Translated using Weblate (Lithuanian)
Currently translated at 64.7% (762 of 1177 strings)

Co-authored-by: Vac31 <gateway_31@protonmail.com>
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/lt/
Translation: Picard/App
2024-04-07 12:29:10 +00:00
Philipp Wolfer
e2ce34eaf7 Translated using Weblate (Chinese (Simplified))
Currently translated at 95.8% (1128 of 1177 strings)

Translated using Weblate (Turkish)

Currently translated at 30.6% (361 of 1177 strings)

Translated using Weblate (Swedish)

Currently translated at 54.1% (637 of 1177 strings)

Translated using Weblate (Albanian)

Currently translated at 22.3% (263 of 1177 strings)

Translated using Weblate (Slovenian)

Currently translated at 23.6% (278 of 1177 strings)

Translated using Weblate (Slovak)

Currently translated at 26.4% (311 of 1177 strings)

Translated using Weblate (Polish)

Currently translated at 56.1% (661 of 1177 strings)

Translated using Weblate (Dutch)

Currently translated at 99.6% (1173 of 1177 strings)

Translated using Weblate (Malay)

Currently translated at 79.6% (937 of 1177 strings)

Translated using Weblate (Korean)

Currently translated at 59.9% (706 of 1177 strings)

Translated using Weblate (Japanese)

Currently translated at 83.7% (986 of 1177 strings)

Translated using Weblate (Italian)

Currently translated at 100.0% (1177 of 1177 strings)

Translated using Weblate (Indonesian)

Currently translated at 14.1% (166 of 1177 strings)

Translated using Weblate (Hebrew)

Currently translated at 92.9% (1094 of 1177 strings)

Translated using Weblate (French)

Currently translated at 99.3% (1169 of 1177 strings)

Translated using Weblate (Finnish)

Currently translated at 99.1% (1167 of 1177 strings)

Translated using Weblate (Estonian)

Currently translated at 62.8% (740 of 1177 strings)

Translated using Weblate (German)

Currently translated at 100.0% (1177 of 1177 strings)

Co-authored-by: Philipp Wolfer <ph.wolfer@gmail.com>
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/de/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/et/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/fi/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/fr/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/he/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/id/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/it/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/ja/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/ko/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/ms/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/nl/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/pl/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/sk/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/sl/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/sq/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/sv/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/tr/
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/zh_Hans/
Translation: Picard/App
2024-04-07 12:29:09 +00:00
Hosted Weblate
58c1177b7d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/
Translation: Picard/App
2024-04-06 11:37:38 +00:00
Philipp Wolfer
6326015225 Run update_constants 2024-04-06 13:37:20 +02:00
Philipp Wolfer
78a042a891 Fixed typo in $is_video doc string 2024-04-06 13:36:34 +02:00
Philipp Wolfer
2fc0a54c06 Add tests for collection.load_user_collections 2024-04-06 13:17:41 +02:00
Philipp Wolfer
345b2cb768 Added tests for collection module 2024-04-06 13:17:41 +02:00
Laurent Monin
b83ef2540b Merge pull request #2390 from zas/track_cleanup
Track cleanup
2024-04-05 12:21:06 +02:00
Laurent Monin
f2b2f90362 add_file(): ensure track_will_expand is defined
That's a potential bug, but conditions for it to happen are very rare.

Method is only called from 9eda85bf3a/picard/file.py (L653)
 and it only runs if the parent actually changed
2024-04-05 11:56:51 +02:00
Laurent Monin
05ceb63a75 ignored_for_completeness(): check properties before config
It is a tad faster.
2024-04-05 10:47:37 +02:00
Laurent Monin
9eda85bf3a Merge pull request #2389 from zas/collections_cleanup
Collections cleanup
2024-04-04 17:45:22 +02:00
Laurent Monin
68367947f4 Simplify Collection constructor and get_user_collection() 2024-04-04 14:44:21 +02:00
Laurent Monin
e042c47fb3 Collection.pending -> Collection.pending_releases 2024-04-04 13:59:32 +02:00
Laurent Monin
3212d62d6a Use releases consistently for Collection releases
`ids` was used in some parts of code, but field in Collection is actually `releases`
2024-04-04 13:57:50 +02:00
Laurent Monin
742c0cf943 Cosmetic change in debug output 2024-04-04 13:29:28 +02:00
Laurent Monin
9c0697cd89 Get rid of COLLECTION_ADD/COLLECTION_REMOVE, pass appropriate methods instead 2024-04-04 13:25:08 +02:00
Laurent Monin
c162fc0e23 Collection._finished(): directly pass success handler 2024-04-04 13:18:02 +02:00
Laurent Monin
f94fb244ab Collection._finished(): explode it in smaller bits 2024-04-04 13:12:31 +02:00
Laurent Monin
a2d2161efe Fix "dictionary changed size during iteration" in upgrade hooks loop
Introduced by 92b09036e9
2024-04-03 18:53:56 +02:00
Laurent Monin
2daf6f2dc6 Merge pull request #2387 from zas/rg_release_versions
Refactor ReleaseGroup._parse_versions()
2024-04-03 15:16:41 +02:00
Laurent Monin
6d9100739d Add extra tests for prepare_releases_for_versions() 2024-04-03 14:01:34 +02:00
Laurent Monin
5c1bdb5204 Regroup constants at top of the file 2024-04-03 11:38:36 +02:00