mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DolphinWX: show simple message about scanning in statusbar.
This commit is contained in:
@ -740,6 +740,15 @@ bool GameListCtrl::SyncCacheFile(bool write)
|
||||
|
||||
void GameListCtrl::RescanList()
|
||||
{
|
||||
auto post_status = [&](const wxString& status) {
|
||||
auto event = new wxCommandEvent(wxEVT_HOST_COMMAND, IDM_UPDATE_STATUS_BAR);
|
||||
event->SetInt(0);
|
||||
event->SetString(status);
|
||||
QueueEvent(event);
|
||||
};
|
||||
|
||||
post_status(_("Scanning..."));
|
||||
|
||||
const std::vector<std::string> search_extensions = {".gcm", ".tgc", ".iso", ".ciso", ".gcz",
|
||||
".wbfs", ".wad", ".dol", ".elf"};
|
||||
// TODO This could process paths iteratively as they are found
|
||||
@ -783,6 +792,8 @@ void GameListCtrl::RescanList()
|
||||
// Post UI event to update the displayed list
|
||||
QueueEvent(new wxCommandEvent(DOLPHIN_EVT_REFRESH_GAMELIST));
|
||||
|
||||
post_status(_("Scan complete!"));
|
||||
|
||||
SyncCacheFile(true);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user