mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-08-04 09:12:32 +02:00
fix: add missing close() call, ensure jupyter console client.shutdown() is called in closeEvent
This commit is contained in:
@@ -175,12 +175,11 @@ class JupyterConsoleWindow(QWidget): # pragma: no cover:
|
||||
|
||||
def closeEvent(self, event):
|
||||
"""Override to handle things when main window is closed."""
|
||||
self.dock.clear_all()
|
||||
self.dock.cleanup()
|
||||
self.dock.close()
|
||||
self.figure.clear_all()
|
||||
self.figure.cleanup()
|
||||
self.figure.close()
|
||||
self.console.close()
|
||||
|
||||
super().closeEvent(event)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user