mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-22 10:25:47 -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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user