Also handle errors in on_files_prepared()

It is the same special case so we go back to a previous page.
This commit is contained in:
Daniel Johnson 2023-12-16 08:06:47 -05:00 committed by Mathieu Comandon
parent 9a4b9a0783
commit ddbf87a70c

View file

@ -589,7 +589,11 @@ class InstallerWindow(ModelessDialog,
AsyncCall(self.interpreter.installer.prepare_game_files, self.on_files_prepared, patch_version)
def on_files_prepared(self, _result, _error):
def on_files_prepared(self, _result, error):
if error:
self._handle_callback_error(error)
return
if not self.interpreter.installer.files:
logger.debug("Installer doesn't require files")
self.launch_installer_commands()