Fix crash when drag-dropping texture packs. Fixes the main part of #13614 .

Still some weirdness going on with error checking though.
This commit is contained in:
Henrik Rydgård committed 2020-11-15 23:09:10 +01:00
1 parent d9350d4899
commit cf092eb534
1 file changed
+6 -2
+6 -2
View File
@@ -116,12 +116,16 @@ void InstallZipScreen::update() {
progressBar_->SetVisibility(V_VISIBLE);
progressBar_->SetProgress(g_GameManager.GetCurrentInstallProgressPercentage());
}
backChoice_->SetEnabled(false);
if (backChoice_) {
backChoice_->SetEnabled(false);
}
} else {
if (progressBar_) {
progressBar_->SetVisibility(V_GONE);
}
backChoice_->SetEnabled(true);
if (backChoice_) {
backChoice_->SetEnabled(true);
}
std::string err = g_GameManager.GetInstallError();
if (!err.empty()) {
if (doneView_)