Update recent games list & remove redundant recent games from ini file

This commit is contained in:
kaienfr committed 2013-09-05 18:23:28 +02:00
1 parent 515874c147
commit 137df18a00
6 files changed
+36 -7

No files matched your search

+7
View File
@@ -48,6 +48,7 @@ namespace MainWindow {
WM_USER_LOG_STATUS_CHANGED = WM_USER + 101,
WM_USER_ATRAC_STATUS_CHANGED = WM_USER + 102,
WM_USER_UPDATE_UI = WM_USER + 103,
WM_USER_RECREATE_RECENTLIST = WM_USER + 104,
};
extern HWND hwndMain;
}
@@ -398,6 +399,7 @@ void GameSettingsScreen::CreateViews() {
UI::EventReturn GameSettingsScreen::OnClearRecents(UI::EventParams &e) {
g_Config.recentIsos.clear();
clearrecentlist_=true; // set true to send clear_recent_list message
return UI::EVENT_DONE;
}
@@ -489,6 +491,11 @@ UI::EventReturn GameSettingsScreen::OnBack(UI::EventParams &e) {
KeyMap::UpdateConfirmCancelKeys();
if (clearrecentlist_){
// clear the recent game list on MainWindow.
PostMessage(MainWindow::hwndMain, MainWindow::WM_USER_RECREATE_RECENTLIST, 0, 0);
clearrecentlist_ = false; }
return UI::EVENT_DONE;
}