Skip to content

Commit

Permalink
Merge pull request #17457 from unknownbrackets/zip-install
Browse files Browse the repository at this point in the history
UI: Fix thread error on zip open failure
  • Loading branch information
hrydgard committed May 14, 2023
2 parents 55c1c48 + 252d71f commit c8b5871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Util/GameManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -742,6 +742,6 @@ void GameManager::ResetInstallError() {
}

void GameManager::InstallDone() {
installInProgress_ = false;
installDonePending_ = true;
installInProgress_ = false;
}

0 comments on commit c8b5871

Please sign in to comment.