ci-gui: enable buttons if an error occurs before installation

This commit is contained in:
Ian Burgwin
2021-02-08 20:55:51 -08:00
parent 2636c5923c
commit 9fc509489f

View File

@@ -467,6 +467,7 @@ class CustomInstallGUI(ttk.Frame):
installer.log(line2) installer.log(line2)
self.show_error('An error occurred when trying to read the files.') self.show_error('An error occurred when trying to read the files.')
self.open_console() self.open_console()
self.enable_buttons()
return return
if self.skip_contents_var.get() != 1: if self.skip_contents_var.get() != 1:
@@ -475,6 +476,7 @@ class CustomInstallGUI(ttk.Frame):
self.show_error(f'Not enough free space.\n' self.show_error(f'Not enough free space.\n'
f'Combined title install size: {total_size / (1024 * 1024):0.2f} MiB\n' f'Combined title install size: {total_size / (1024 * 1024):0.2f} MiB\n'
f'Free space: {free_space / (1024 * 1024):0.2f} MiB') f'Free space: {free_space / (1024 * 1024):0.2f} MiB')
self.enable_buttons()
return return
def install(): def install():