Improved error handling in ZIP installer

This commit is contained in:
Henrik Rydgård committed 2013-12-06 15:29:14 +01:00
1 parent a376f20d54
commit 37de6eee0f
4 files changed
+11 -5

No files matched your search

+3 -1
View File
@@ -71,7 +71,6 @@ UI::EventReturn InstallZipScreen::OnInstall(UI::EventParams &params) {
if (g_GameManager.InstallGameOnThread(zipPath_, deleteZipFile_)) {
installStarted_ = true;
installChoice_->SetEnabled(false);
MainScreen::showHomebrewTab = true;
}
return UI::EVENT_DONE;
}
@@ -90,6 +89,9 @@ void InstallZipScreen::update(InputState &input) {
std::string err = g_GameManager.GetInstallError();
if (!err.empty()) {
doneView_->SetText(iz->T(err.c_str()));
} else if (installStarted_) {
doneView_->SetText(iz->T("Installed!"));
MainScreen::showHomebrewTab = true;
}
}
UIScreen::update(input);