From e733011544b8e3cc600aaca6e8b954f49d070a7c Mon Sep 17 00:00:00 2001 From: Peter Story Date: Mon, 8 Jul 2024 09:22:46 -0400 Subject: [PATCH] Tweak cancellation logic Don't call on_exit if the user ever requested cancellation. For #19 --- src/pydiode/gui/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pydiode/gui/common.py b/src/pydiode/gui/common.py index 5967c5a..0723d9b 100755 --- a/src/pydiode/gui/common.py +++ b/src/pydiode/gui/common.py @@ -132,7 +132,7 @@ def check_subprocesses( # Mark this cancellation request as handled cancelled.set(False) # Don't call on_exit if the user requested cancellation - on_exit = None if cancel_signal == signal.SIGINT else on_exit + on_exit = None if pipeline.cancelled else on_exit # At the next check, hopefully the processes will have exited widget.after( SLEEP,