1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 12:57:45 +00:00

Create the data directory if it doesn't exist

Apparently Qt does not do this automatically on Windows, so this fixes
another out of box bug on that platform.
This commit is contained in:
Joshua Goins 2022-04-27 15:09:34 -04:00
parent 95b52b43f8
commit 7cfa2e41a4

View file

@ -42,6 +42,9 @@ AssetUpdater::AssetUpdater(LauncherCore& launcher) : launcher(launcher) {
dataDir =
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
if(!QDir().exists(dataDir))
QDir().mkdir(dataDir);
}
void AssetUpdater::update(const ProfileSettings& profile) {