mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Qt/Settings: Update default gamelist path textbox when changed
This commit is contained in:
parent
987bec2fd5
commit
28ad12bf30
4 changed files with 22 additions and 3 deletions
|
@ -72,6 +72,20 @@ void Settings::RemovePath(const QString& qpath)
|
|||
emit PathRemoved(qpath);
|
||||
}
|
||||
|
||||
QString Settings::GetDefaultGame() const
|
||||
{
|
||||
return QString::fromStdString(SConfig::GetInstance().m_strDefaultISO);
|
||||
}
|
||||
|
||||
void Settings::SetDefaultGame(QString path)
|
||||
{
|
||||
if (GetDefaultGame() != path)
|
||||
{
|
||||
SConfig::GetInstance().m_strDefaultISO = path.toStdString();
|
||||
emit DefaultGameChanged(path);
|
||||
}
|
||||
}
|
||||
|
||||
bool Settings::GetPreferredView() const
|
||||
{
|
||||
return QSettings().value(QStringLiteral("PreferredView"), true).toBool();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue