mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 21:07:45 +00:00
Read wine info for profile again
This commit is contained in:
parent
c4b58b154a
commit
d1f745045d
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ Profile::Profile(LauncherCore &launcher, const QString &key, QObject *parent)
|
||||||
, m_launcher(launcher)
|
, m_launcher(launcher)
|
||||||
{
|
{
|
||||||
readGameVersion();
|
readGameVersion();
|
||||||
|
readWineInfo();
|
||||||
|
|
||||||
const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||||
|
|
||||||
|
@ -93,7 +94,6 @@ void Profile::readWineInfo()
|
||||||
setWinePath("wine");
|
setWinePath("wine");
|
||||||
break;
|
break;
|
||||||
case WineType::Custom: // custom pth
|
case WineType::Custom: // custom pth
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -209,6 +209,7 @@ void Profile::setWineType(const WineType type)
|
||||||
m_config.setWineType(static_cast<int>(type));
|
m_config.setWineType(static_cast<int>(type));
|
||||||
m_config.save();
|
m_config.save();
|
||||||
Q_EMIT wineTypeChanged();
|
Q_EMIT wineTypeChanged();
|
||||||
|
readWineInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue