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:
@ -204,6 +204,17 @@ class AutoUpdates(BECMainWindow):
|
|||||||
self.enable_gui_highlights(False)
|
self.enable_gui_highlights(False)
|
||||||
self.on_stop()
|
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 #####################################
|
################# Update Functions #####################################
|
||||||
########################################################################
|
########################################################################
|
||||||
@ -348,14 +359,3 @@ class AutoUpdates(BECMainWindow):
|
|||||||
Args:
|
Args:
|
||||||
msg (ScanStatusMessage): The scan status message.
|
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()
|
|
||||||
|
Reference in New Issue
Block a user