From 11ec0d39990bd88b498f5c271d36ec14c0a8a67e Mon Sep 17 00:00:00 2001 From: EmilJohan Date: Wed, 24 Jul 2024 14:36:31 +0200 Subject: [PATCH] fix for cleanup --- Smelt.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Smelt.py b/Smelt.py index c2b7c34..d4f2bb9 100644 --- a/Smelt.py +++ b/Smelt.py @@ -1102,4 +1102,11 @@ def cleanup(): window = Smelt() window.show() + +def on_exit(): + cleanup() + sys.exit() + + +app.aboutToQuit.connect(on_exit) sys.exit(app.exec_())