0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-13 19:21:50 +02:00

fix(server): turn_off_the_lights cleanup fixed for parent_id widgets

This commit is contained in:
2025-04-11 10:17:33 +02:00
parent 7e65d4f2d6
commit 20a86ad325

View File

@ -90,7 +90,12 @@ class GUIServer:
"""
self.launcher_window = cast(LaunchWindow, self.launcher_window)
if len(connections) <= 1:
remaining_connections = [
connection
for connection in connections.values()
if connection.parent_id != self.launcher_window.gui_id
]
if len(remaining_connections) <= 1:
self.launcher_window.show()
self.launcher_window.activateWindow()
self.launcher_window.raise_()