File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments