mirror of
https://github.com/ihaveamac/custom-install.git
synced 2025-12-06 06:41:45 +00:00
ci-gui: enable buttons if an error occurs before installation
This commit is contained in:
@@ -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():
|
||||||
|
|||||||
Reference in New Issue
Block a user