Browse Source

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
pull/616/head
Dan Rose 4 years ago
committed by Chris
parent
commit
cc31d03ba3
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/gui/containers/application.py

2
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()

Loading…
Cancel
Save