When removing a game, tell the recent-files cache.

This commit is contained in:
Henrik Rydgård committed 2025-06-05 11:27:46 +02:00
1 parent 4cc5b230ce
commit b422aecb49
2 files changed
+4 -1

No files matched your search

+1
View File
@@ -564,6 +564,7 @@ UI::EventReturn GameScreen::OnDeleteGame(UI::EventParams &e) {
std::shared_ptr<GameInfo> info = g_gameInfoCache->GetInfo(NULL, gamePath, GameInfoFlags::PARAM_SFO);
info->Delete();
g_gameInfoCache->Clear();
g_recentFiles.Remove(gamePath.c_str());
sm->switchScreen(new MainScreen());
}
}));
+3 -1
View File
@@ -214,6 +214,7 @@ UI::EventReturn InstallZipScreen::OnInstall(UI::EventParams &params) {
}
if (g_GameManager.InstallZipOnThread(task)) {
installStarted_ = true;
playChoice_->SetEnabled(false); // need to exit this screen to played the installed one. We could make this smarter.
if (installChoice_) {
installChoice_->SetEnabled(false);
}
@@ -243,8 +244,9 @@ void InstallZipScreen::update() {
if (doneView_)
doneView_->SetText(iz->T(err));
} else if (installStarted_) {
if (doneView_)
if (doneView_) {
doneView_->SetText(iz->T("Installed!"));
}
MainScreen::showHomebrewTab = returnToHomebrew_;
}
}