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:
@ -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"),
|
||||||
|
Reference in New Issue
Block a user