Skip to content

Commit 5d11af4

Browse files
authored
Merge pull request #1581 from LCA-ActivityBrowser/AB_taskbar_icon_Win11
This could be the fix for the AB icon not appearing in the Windows 11 taskbar.
2 parents 0893cc8 + e0c3e38 commit 5d11af4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

activity_browser/__main__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
from qtpy import QtWidgets, QtCore, QtGui
99
from qtpy.QtCore import Qt
1010

11+
# this will enable the AB icon to show in the taskbar under Windows 11 (instead of the default python icon)
12+
if sys.platform == "win32":
13+
import ctypes
14+
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("activity.browser.1")
15+
1116
from activity_browser import application
1217
from activity_browser.ui import icons
1318

0 commit comments

Comments
 (0)