[#2146] Cleanup On CtrlC

This commit is contained in:
David Sangrey committed 2024-01-30 17:38:30 -05:00
1 parent c10afa6e68
commit 840dd54faf
1 file changed
+5 -2
+5 -2
View File
@@ -2365,6 +2365,9 @@ sys.path: {sys.path}'''
# Check for FDEV IDs
root.after(3, check_fdev_ids)
# Start the main event loop
root.mainloop()
try:
root.mainloop()
except KeyboardInterrupt:
logger.info("Ctrl+C Detected, Attempting Clean Shutdown")
app.onexit()
logger.info('Exiting')