Browse Source

add fallback show_restart_button check for existing buildSpecs

pull/473/head
Chris 6 years ago
parent
commit
5237b495c6
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/gui/containers/application.py

2
gooey/gui/containers/application.py

@ -227,7 +227,7 @@ class GooeyApplication(wx.Frame):
self.navbar.Show(False)
self.console.Show(True)
buttons = (['edit_button', 'restart_button', 'close_button']
if self.buildSpec['show_restart_button']
if self.buildSpec.get('show_restart_button', True)
else ['edit_button', 'close_button'])
self.footer.showButtons(*buttons)
self.footer.progress_bar.Show(False)

Loading…
Cancel
Save