👷 Lists and cover will be loaded in background. Gui won't hang anymore. Fixes #423

This commit is contained in:
Robert Honz
2025-06-29 20:33:22 +02:00
parent f0412c6f96
commit 039546ffe8
2 changed files with 72 additions and 30 deletions
+1 -3
View File
@@ -761,9 +761,7 @@ class Download:
is_album: bool = isinstance(media, Album)
# TODO: Refactor strings to constants (also in cfg.py)
sort_by_track_num: bool = (
True if "album_track_num" in file_name_relative or "list_pos" in file_name_relative else False
)
sort_by_track_num: bool = bool("album_track_num" in file_name_relative or "list_pos" in file_name_relative)
result_dirs: [pathlib.Path] = []
list_total: int = len(items)