From 252d71f27e7c43e895b6c631ff01ed256fc1fcc6 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 14 May 2023 11:49:10 -0700 Subject: [PATCH] UI: Fix thread error on zip open failure. --- Core/Util/GameManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Util/GameManager.cpp b/Core/Util/GameManager.cpp index 9d5fe26d43..37b3b1dd6a 100644 --- a/Core/Util/GameManager.cpp +++ b/Core/Util/GameManager.cpp @@ -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; }