mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt: Add option to disable auto-refresh
This commit is contained in:
@ -133,6 +133,21 @@ void Settings::ReloadTitleDB()
|
||||
emit TitleDBReloadRequested();
|
||||
}
|
||||
|
||||
bool Settings::IsAutoRefreshEnabled() const
|
||||
{
|
||||
return GetQSettings().value(QStringLiteral("gamelist/autorefresh"), true).toBool();
|
||||
}
|
||||
|
||||
void Settings::SetAutoRefreshEnabled(bool enabled)
|
||||
{
|
||||
if (IsAutoRefreshEnabled() == enabled)
|
||||
return;
|
||||
|
||||
GetQSettings().setValue(QStringLiteral("gamelist/autorefresh"), enabled);
|
||||
|
||||
emit AutoRefreshToggled(enabled);
|
||||
}
|
||||
|
||||
QString Settings::GetDefaultGame() const
|
||||
{
|
||||
return QString::fromStdString(SConfig::GetInstance().m_strDefaultISO);
|
||||
|
Reference in New Issue
Block a user