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

fix(scan_control): argbox delete later added to prevent overlapping gui if scan changed

This commit is contained in:
2024-06-20 10:34:31 +02:00
parent 6dff1879c4
commit 7ce3a83c58

View File

@ -161,6 +161,7 @@ class ScanControl(BECConnector, QWidget):
"""Clears the scan control layout from GuiGroups and ArgGroups boxes."""
if self.arg_box is not None:
self.layout.removeWidget(self.arg_box)
self.arg_box.deleteLater()
self.arg_box = None
if self.kwarg_boxes != []:
self.remove_kwarg_boxes()