🛠️ Fixed threading errors in GUI.

This commit is contained in:
Robert Honz
2024-01-19 07:25:41 +01:00
parent d620ef9b18
commit 8e9e2c1794
4 changed files with 40 additions and 23 deletions
+2 -1
View File
@@ -78,7 +78,7 @@ class Download:
else:
progress_stdout: bool = False
# Send signal to GUI with media name
progress_gui.item_name.emit(media_name)
progress_gui.item_name.emit(media_name[:30])
try:
# Compute total iterations for progress
@@ -325,6 +325,7 @@ class Download:
progress_stdout: bool = True
else:
progress_stdout: bool = False
progress_gui.item_name.emit(list_media_name[:30])
# Create the list progress task.
p_task1: TaskID = progress.add_task(