From a725d876dec1e4876684673a22c3ebd7a35c8fb9 Mon Sep 17 00:00:00 2001 From: Ian Burgwin Date: Wed, 22 Jul 2020 22:13:33 -0700 Subject: [PATCH] ci-gui: make seeddb optional --- ci-gui.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ci-gui.py b/ci-gui.py index 0141281..e6e42b6 100644 --- a/ci-gui.py +++ b/ci-gui.py @@ -309,6 +309,9 @@ class CustomInstallGUI(ttk.Frame): def show_error(self, message): mb.showerror('Error', message, parent=self.parent) + def ask_warning(self, message): + return mb.askokcancel('Warning', message, parent=self.parent) + def show_info(self, message): mb.showinfo('Info', message, parent=self.parent) @@ -332,13 +335,15 @@ class CustomInstallGUI(ttk.Frame): if not boot9: self.show_error('boot9 is not specified.') return - if not seeddb: - self.show_error('seeddb is not specified.') - return if not movable_sed: self.show_error('movable.sed is not specified.') return + if not seeddb: + if not self.ask_warning('seeddb was not specified. Titles that require it will fail to install.\n' + 'Continue?'): + return + self.disable_buttons() self.log('Starting install...')