Save after changing recent list

regarding #7472 . If this is not done then the config file (the main config,
the per-game config files do not have recent entries) is loaded when a game
with game-specific settings is touched.
This commit is contained in:
Peter Tissen 2015-02-13 10:10:42 +01:00
parent 6f0ea8fcf4
commit aa6985f5c2
3 changed files with 3 additions and 0 deletions

View file

@ -301,6 +301,7 @@ UI::EventReturn GameScreen::OnRemoveFromRecent(UI::EventParams &e) {
if (!strcmp((*it).c_str(), gamePath_.c_str())) {
#endif
g_Config.recentIsos.erase(it);
g_Config.Save();
screenManager()->switchScreen(new MainScreen());
return UI::EVENT_DONE;
}