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,20 +419,21 @@ 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['installed']: if result['failed']:
if copied_3dsx: message = ('Some titles failed to install. Others may be and can be finished with '
message = ('custom-install-finalize has been copied to the SD card.\n' 'custom-install-finalize.')
'To finish the install, run this on the console through the homebrew launcher.\n'
'This will install a ticket and seed if required.')
else:
message = ('To finish the install, run custom-install-finalize on the console.\n'
'This will install a ticket and seed if required.')
else: else:
if result['failed']: if result['installed']:
message = ('Some titles failed to install. Others may be and can be finished with ' if copied_3dsx:
'custom-install-finalize.') message = ('custom-install-finalize has been copied to the SD card.\n'
'To finish the install, run this on the console through the homebrew launcher.\n'
'This will install a ticket and seed if required.')
else:
message = ('To finish the install, run custom-install-finalize on the console.\n'
'This will install a ticket and seed if required.')
else: else:
message = 'Nothing was installed.' message = 'Nothing was installed.'