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