0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix(gui_server): add check for app initialization before setting icon

This commit is contained in:
2025-04-09 09:08:04 +02:00
parent 64fc85f512
commit da47f467b0

View File

@ -148,6 +148,8 @@ class GUIServer:
""" """
Set the BEC icon for the application Set the BEC icon for the application
""" """
if self.app is None:
return
icon = QIcon() icon = QIcon()
icon.addFile( icon.addFile(
os.path.join(MODULE_PATH, "assets", "app_icons", "bec_widgets_icon.png"), os.path.join(MODULE_PATH, "assets", "app_icons", "bec_widgets_icon.png"),