Merge pull request #17457 from unknownbrackets/zip-install

UI: Fix thread error on zip open failure
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-05-14 22:54:13 +03:00
commit c8b5871ccb
1 file changed
+2 -2
+2 -2
View File
@@ -310,7 +310,7 @@ bool GameManager::InstallGame(Path url, Path fileName, bool deleteAfter) {
struct zip *z = ZipOpenPath(fileName);
if (!z) {
installInProgress_ = false;
SetInstallError(sy->T("Unable to open zip file"));
return false;
}
@@ -742,6 +742,6 @@ void GameManager::ResetInstallError() {
}
void GameManager::InstallDone() {
installInProgress_ = false;
installDonePending_ = true;
installInProgress_ = false;
}