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

refactor(auto_updates): move cleanup method from user section to internal section

This commit is contained in:
2025-04-12 19:45:34 +02:00
parent 18e4ba6cfe
commit ac9224e5f2

View File

@ -204,6 +204,17 @@ class AutoUpdates(BECMainWindow):
self.enable_gui_highlights(False)
self.on_stop()
def cleanup(self) -> None:
"""
Cleanup procedure to run when the auto updates are disabled.
"""
self.enabled = False
self.stop_auto_update()
self.dock_area.close()
self.dock_area.deleteLater()
self.dock_area = None
super().cleanup()
########################################################################
################# Update Functions #####################################
########################################################################
@ -348,14 +359,3 @@ class AutoUpdates(BECMainWindow):
Args:
msg (ScanStatusMessage): The scan status message.
"""
def cleanup(self) -> None:
"""
Cleanup procedure to run when the auto updates are disabled.
"""
self.enabled = False
self.stop_auto_update()
self.dock_area.close()
self.dock_area.deleteLater()
self.dock_area = None
super().cleanup()