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

This commit is contained in:
2026-01-16 10:56:22 +01:00
committed by Jan Wyzula
co-authored by Jan Wyzula
parent c02f509867
commit dab1defc76
@@ -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"]