1
Fork 0
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:
Joshua Goins 2023-07-31 19:35:53 -04:00
parent c4b58b154a
commit d1f745045d

View file

@ -15,6 +15,7 @@ Profile::Profile(LauncherCore &launcher, const QString &key, QObject *parent)
, m_launcher(launcher)
{
readGameVersion();
readWineInfo();
const QString dataDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
@ -93,7 +94,6 @@ void Profile::readWineInfo()
setWinePath("wine");
break;
case WineType::Custom: // custom pth
break;
default:
break;
}
@ -209,6 +209,7 @@ void Profile::setWineType(const WineType type)
m_config.setWineType(static_cast<int>(type));
m_config.save();
Q_EMIT wineTypeChanged();
readWineInfo();
}
}