mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-11 02:29:00 +00:00
Qt: Add option to disable auto-refresh
This commit is contained in:
parent
0dfd0cfa24
commit
ee479260d0
5 changed files with 74 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue