Skip to content

Commit

Permalink
✨ Windows taskbar icon workaround with proper app id string.
Browse files Browse the repository at this point in the history
  • Loading branch information
exislow committed Jan 19, 2024
1 parent 1e4d89a commit 549931d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tidal_dl_ng/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys
from collections.abc import Callable

from tidal_dl_ng import __version__
from tidal_dl_ng.dialog import DialogVersion
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
Expand Down Expand Up @@ -491,9 +492,8 @@ def gui_activate(tidal: Tidal | None = None):
# Make sure Pyinstaller icons are still grouped
if not sys.argv[0].endswith(".exe"):
# Arbitrary string
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(
"CompanyName.ProductName.SubProduct.VersionInformation"
)
my_app_id: str = "exislow.tidal.dl-ng." + __version__
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(my_app_id)

window = MainWindow(tidal=tidal)
window.show()
Expand Down

0 comments on commit 549931d

Please sign in to comment.