Merge pull request #3269 from JosJuice/purge-cache

Rename "Purge Cache" to "Purge Game List Cache"
This commit is contained in:
Scott Mansell 2015-11-24 14:17:49 +13:00
commit 211169e307
3 changed files with 4 additions and 4 deletions

View File

@ -297,7 +297,7 @@ EVT_MENU(IDM_TOGGLE_STATUSBAR, CFrame::OnToggleStatusbar)
EVT_MENU_RANGE(IDM_LOG_WINDOW, IDM_VIDEO_WINDOW, CFrame::OnToggleWindow) EVT_MENU_RANGE(IDM_LOG_WINDOW, IDM_VIDEO_WINDOW, CFrame::OnToggleWindow)
EVT_MENU_RANGE(IDM_SHOW_SYSTEM, IDM_SHOW_STATE, CFrame::OnChangeColumnsVisible) EVT_MENU_RANGE(IDM_SHOW_SYSTEM, IDM_SHOW_STATE, CFrame::OnChangeColumnsVisible)
EVT_MENU(IDM_PURGE_CACHE, CFrame::GameListChanged) EVT_MENU(IDM_PURGE_GAME_LIST_CACHE, CFrame::GameListChanged)
EVT_MENU(IDM_SAVE_FIRST_STATE, CFrame::OnSaveFirstState) EVT_MENU(IDM_SAVE_FIRST_STATE, CFrame::OnSaveFirstState)
EVT_MENU(IDM_UNDO_LOAD_STATE, CFrame::OnUndoLoadState) EVT_MENU(IDM_UNDO_LOAD_STATE, CFrame::OnUndoLoadState)

View File

@ -345,7 +345,7 @@ wxMenuBar* CFrame::CreateMenu()
viewMenu->AppendCheckItem(IDM_LIST_DRIVES, _("Show Drives")); viewMenu->AppendCheckItem(IDM_LIST_DRIVES, _("Show Drives"));
viewMenu->Check(IDM_LIST_DRIVES, SConfig::GetInstance().m_ListDrives); viewMenu->Check(IDM_LIST_DRIVES, SConfig::GetInstance().m_ListDrives);
viewMenu->Append(IDM_PURGE_CACHE, _("Purge Cache")); viewMenu->Append(IDM_PURGE_GAME_LIST_CACHE, _("Purge Game List Cache"));
wxMenu *columnsMenu = new wxMenu; wxMenu *columnsMenu = new wxMenu;
viewMenu->AppendSubMenu(columnsMenu, _("Select Columns")); viewMenu->AppendSubMenu(columnsMenu, _("Select Columns"));
@ -1953,7 +1953,7 @@ void CFrame::GameListChanged(wxCommandEvent& event)
case IDM_LIST_DRIVES: case IDM_LIST_DRIVES:
SConfig::GetInstance().m_ListDrives = event.IsChecked(); SConfig::GetInstance().m_ListDrives = event.IsChecked();
break; break;
case IDM_PURGE_CACHE: case IDM_PURGE_GAME_LIST_CACHE:
std::vector<std::string> rFilenames = DoFileSearch({".cache"}, {File::GetUserPath(D_CACHE_IDX)}); std::vector<std::string> rFilenames = DoFileSearch({".cache"}, {File::GetUserPath(D_CACHE_IDX)});
for (const std::string& rFilename : rFilenames) for (const std::string& rFilename : rFilenames)

View File

@ -149,7 +149,7 @@ enum
IDM_LIST_WORLD, IDM_LIST_WORLD,
IDM_LIST_UNKNOWN, IDM_LIST_UNKNOWN,
IDM_LIST_DRIVES, IDM_LIST_DRIVES,
IDM_PURGE_CACHE, IDM_PURGE_GAME_LIST_CACHE,
// Help menu // Help menu
IDM_HELP_WEBSITE, IDM_HELP_WEBSITE,