Merge pull request #3269 from JosJuice/purge-cache
Rename "Purge Cache" to "Purge Game List Cache"
This commit is contained in:
commit
211169e307
|
@ -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_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_UNDO_LOAD_STATE, CFrame::OnUndoLoadState)
|
||||
|
|
|
@ -345,7 +345,7 @@ wxMenuBar* CFrame::CreateMenu()
|
|||
|
||||
viewMenu->AppendCheckItem(IDM_LIST_DRIVES, _("Show Drives"));
|
||||
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;
|
||||
viewMenu->AppendSubMenu(columnsMenu, _("Select Columns"));
|
||||
|
@ -1953,7 +1953,7 @@ void CFrame::GameListChanged(wxCommandEvent& event)
|
|||
case IDM_LIST_DRIVES:
|
||||
SConfig::GetInstance().m_ListDrives = event.IsChecked();
|
||||
break;
|
||||
case IDM_PURGE_CACHE:
|
||||
case IDM_PURGE_GAME_LIST_CACHE:
|
||||
std::vector<std::string> rFilenames = DoFileSearch({".cache"}, {File::GetUserPath(D_CACHE_IDX)});
|
||||
|
||||
for (const std::string& rFilename : rFilenames)
|
||||
|
|
|
@ -149,7 +149,7 @@ enum
|
|||
IDM_LIST_WORLD,
|
||||
IDM_LIST_UNKNOWN,
|
||||
IDM_LIST_DRIVES,
|
||||
IDM_PURGE_CACHE,
|
||||
IDM_PURGE_GAME_LIST_CACHE,
|
||||
|
||||
// Help menu
|
||||
IDM_HELP_WEBSITE,
|
||||
|
|
Loading…
Reference in New Issue