ci-gui: prioritize failed message over installed

This commit is contained in:
Ian Burgwin
2020-12-02 22:29:20 -08:00
parent a529ecf760
commit fcf47e0564

View File

@@ -419,8 +419,13 @@ class CustomInstallGUI(ttk.Frame):
def install(): def install():
try: try:
result, copied_3dsx = installer.start() result, copied_3dsx = installer.start()
print(result)
if result: if result:
self.log('Done!') self.log('Done!')
if result['failed']:
message = ('Some titles failed to install. Others may be and can be finished with '
'custom-install-finalize.')
else:
if result['installed']: if result['installed']:
if copied_3dsx: if copied_3dsx:
message = ('custom-install-finalize has been copied to the SD card.\n' message = ('custom-install-finalize has been copied to the SD card.\n'
@@ -429,10 +434,6 @@ class CustomInstallGUI(ttk.Frame):
else: else:
message = ('To finish the install, run custom-install-finalize on the console.\n' message = ('To finish the install, run custom-install-finalize on the console.\n'
'This will install a ticket and seed if required.') 'This will install a ticket and seed if required.')
else:
if result['failed']:
message = ('Some titles failed to install. Others may be and can be finished with '
'custom-install-finalize.')
else: else:
message = 'Nothing was installed.' message = 'Nothing was installed.'