mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Sneak in some paranoia in InstallZipScreen.cpp (another one from #13057)
This commit is contained in:
parent
7bb524810d
commit
3cc20e5550
1 changed files with 6 additions and 1 deletions
|
@ -81,6 +81,9 @@ void InstallZipScreen::CreateViews() {
|
|||
returnToHomebrew_ = false;
|
||||
} else {
|
||||
leftColumn->Add(new TextView(iz->T("Zip file does not contain PSP software"), ALIGN_LEFT, false, new AnchorLayoutParams(10, 10, NONE, NONE)));
|
||||
doneView_ = nullptr;
|
||||
progressBar_ = nullptr;
|
||||
installChoice_ = nullptr;
|
||||
backChoice_ = rightColumnItems->Add(new Choice(di->T("Back")));
|
||||
}
|
||||
|
||||
|
@ -99,7 +102,9 @@ bool InstallZipScreen::key(const KeyInput &key) {
|
|||
UI::EventReturn InstallZipScreen::OnInstall(UI::EventParams ¶ms) {
|
||||
if (g_GameManager.InstallGameOnThread(zipPath_, zipPath_, deleteZipFile_)) {
|
||||
installStarted_ = true;
|
||||
installChoice_->SetEnabled(false);
|
||||
if (installChoice_) {
|
||||
installChoice_->SetEnabled(false);
|
||||
}
|
||||
}
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue