Skip to content

Commit 47d5513

Browse files
committed
Taskbar icon fix
1 parent 9b93b29 commit 47d5513

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

activity_browser/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def run_activity_browser():
151151
setup_ab_logging()
152152
loader = ABLoader()
153153
loader.show()
154+
application.set_icon() # setting this here seems to fix the icon not showing sometimes
154155
sys.exit(application.exec_())
155156

156157

@@ -179,6 +180,7 @@ def run_activity_browser_no_launcher():
179180
application.main_window.sync()
180181
application.main_window.show()
181182

183+
application.set_icon() # setting this here seems to fix the icon not showing sometimes
182184
sys.exit(application.exec_())
183185

184186

activity_browser/ui/application.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ def add_fonts(self):
3838
QFontDatabase.addApplicationFont(fonts.__path__[0] + "/notosans.ttf")
3939

4040
def set_icon(self):
41-
app_pix = QtGui.QPixmap(
42-
str(Path(icons.__path__[0]).joinpath("main", "activitybrowser.png"))
43-
).scaledToHeight(100, mode=Qt.TransformationMode.SmoothTransformation)
44-
app_icon = QtGui.QIcon(app_pix)
41+
app_icon = QtGui.QIcon(str(Path(icons.__path__[0]).joinpath("main", "ab-small.png")))
4542
self.setWindowIcon(app_icon)
4643

4744
def pyside6_setup(self):

0 commit comments

Comments
 (0)