From cc31d03ba3952b8864ce0c376c5e93ebccc2c7ea Mon Sep 17 00:00:00 2001 From: Dan Rose Date: Fri, 10 Jul 2020 13:54:43 -0500 Subject: [PATCH] Fix show_stop_warning Previously, show_stop_warning=False would make the stop button do nothing Now, if show_stop_warning=False the stop button stops the program without a warning dialog --- gooey/gui/containers/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gooey/gui/containers/application.py b/gooey/gui/containers/application.py index 9804261..3926e44 100644 --- a/gooey/gui/containers/application.py +++ b/gooey/gui/containers/application.py @@ -145,7 +145,7 @@ class GooeyApplication(wx.Frame): def onStopExecution(self): """Displays a scary message and then force-quits the executing client code if the user accepts""" - if self.buildSpec['show_stop_warning'] and modals.confirmForceStop(): + if not self.buildSpec['show_stop_warning'] or modals.confirmForceStop(): self.clientRunner.stop()