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:
Dentomologist
2026-03-04 15:24:30 -08:00
parent 49d5299f1e
commit 7209cf87cb
11 changed files with 119 additions and 0 deletions

View File

@@ -514,6 +514,21 @@ void Settings::SetAutoRefreshEnabled(bool enabled)
emit AutoRefreshToggled(enabled);
}
bool Settings::IsGameCountVisible() const
{
return GetQSettings().value(QStringLiteral("GameCount/Visible"), true).toBool();
}
void Settings::SetGameCountVisible(const bool visible)
{
if (IsGameCountVisible() == visible)
return;
GetQSettings().setValue(QStringLiteral("GameCount/Visible"), visible);
emit GameCountVisibilityChanged(visible);
}
QString Settings::GetDefaultGame() const
{
return QString::fromStdString(Config::Get(Config::MAIN_DEFAULT_ISO));
@@ -815,6 +830,7 @@ void Settings::RefreshWidgetVisibility()
emit DebugModeToggled(IsDebugModeEnabled());
emit LogVisibilityChanged(IsLogVisible());
emit LogConfigVisibilityChanged(IsLogConfigVisible());
emit GameCountVisibilityChanged(IsGameCountVisible());
}
void Settings::SetDebugFont(QFont font)