1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-04 16:02:51 +01:00

fix(advanced_dock_area): remove all widgets when loading new profiles

This commit is contained in:
2026-01-06 11:20:57 +01:00
committed by Jan Wyzula
parent c02f509867
commit dab1defc76

View File

@@ -688,6 +688,9 @@ class AdvancedDockArea(DockAreaWidget):
QMessageBox.warning(self, "Profile not found", f"Profile '{name}' not found.")
return
# Clear existing docks and remove all widgets
self.delete_all()
# Rebuild widgets and restore states
for item in read_manifest(settings):
obj_name = item["object_name"]