mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-20 01:15:08 -05:00
GameList: Add status bar with game count
The status bar shows the number of games in your collection. If any games are hidden by the platform, region, or search filters it will also show how many games are visible and how many are filtered. The visibility of the status bar can be toggled from the menu by selecting `View`->`Show Game Count`. Implements https://bugs.dolphin-emu.org/issues/9517.
This commit is contained in:
@@ -595,6 +595,13 @@ void MenuBar::AddViewMenu()
|
||||
AddShowPlatformsMenu(view_menu);
|
||||
AddShowRegionsMenu(view_menu);
|
||||
|
||||
view_menu->addSeparator();
|
||||
QAction* const show_game_count = view_menu->addAction(tr("Show Game Count"));
|
||||
show_game_count->setCheckable(true);
|
||||
show_game_count->setChecked(Settings::Instance().IsGameCountVisible());
|
||||
connect(show_game_count, &QAction::toggled, &Settings::Instance(),
|
||||
&Settings::SetGameCountVisible);
|
||||
|
||||
view_menu->addSeparator();
|
||||
QAction* const purge_action =
|
||||
view_menu->addAction(tr("Purge Game List Cache"), this, &MenuBar::PurgeGameListCache);
|
||||
|
||||
Reference in New Issue
Block a user