✨ Windows taskbar icon workaround with proper app id string.

This commit is contained in:
Robert Honz
2024-01-19 11:22:30 +01:00
parent 1e4d89aac8
commit 549931d142
+3 -3
View File
@@ -2,6 +2,7 @@ import math
import sys import sys
from collections.abc import Callable from collections.abc import Callable
from tidal_dl_ng import __version__
from tidal_dl_ng.dialog import DialogVersion from tidal_dl_ng.dialog import DialogVersion
from tidal_dl_ng.helper.path import get_format_template from tidal_dl_ng.helper.path import get_format_template
from tidal_dl_ng.helper.tidal import items_results_all, search_results_all, user_media_lists from tidal_dl_ng.helper.tidal import items_results_all, search_results_all, user_media_lists
@@ -491,9 +492,8 @@ def gui_activate(tidal: Tidal | None = None):
# Make sure Pyinstaller icons are still grouped # Make sure Pyinstaller icons are still grouped
if not sys.argv[0].endswith(".exe"): if not sys.argv[0].endswith(".exe"):
# Arbitrary string # Arbitrary string
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID( my_app_id: str = "exislow.tidal.dl-ng." + __version__
"CompanyName.ProductName.SubProduct.VersionInformation" ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(my_app_id)
)
window = MainWindow(tidal=tidal) window = MainWindow(tidal=tidal)
window.show() window.show()