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

fix(dock): fix cleanup of dock_label in dock, remove logger.warning

This commit is contained in:
2025-04-28 11:10:27 +02:00
parent eb0323b989
commit 42ba0b968d

View File

@ -412,11 +412,10 @@ class BECDock(BECWidget, Dock):
""" """
# # FIXME Cleanup might be called twice # # FIXME Cleanup might be called twice
try: try:
logger.info(f"Cleaning up dock {self.name()}")
self.label.close() self.label.close()
self.label.deleteLater() self.label.deleteLater()
except Exception as e: except Exception as e:
logger.error(f"Error while closing dock label: {e}") logger.info(f"Error while closing dock label of dock: {e}")
# Remove the dock from the parent dock area # Remove the dock from the parent dock area
if self.parent_dock_area: if self.parent_dock_area: