mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt: Improve updater
This commit is contained in:
@ -312,3 +312,18 @@ QFont Settings::GetDebugFont() const
|
||||
|
||||
return QSettings().value(QStringLiteral("debugger/font"), default_font).value<QFont>();
|
||||
}
|
||||
|
||||
void Settings::SetAutoUpdateTrack(const QString& mode)
|
||||
{
|
||||
if (mode == GetAutoUpdateTrack())
|
||||
return;
|
||||
|
||||
SConfig::GetInstance().m_auto_update_track = mode.toStdString();
|
||||
|
||||
emit AutoUpdateTrackChanged(mode);
|
||||
}
|
||||
|
||||
QString Settings::GetAutoUpdateTrack() const
|
||||
{
|
||||
return QString::fromStdString(SConfig::GetInstance().m_auto_update_track);
|
||||
}
|
||||
|
Reference in New Issue
Block a user