mirror of
https://github.com/redstrate/Astra.git
synced 2025-05-11 20:47:45 +00:00
Create patches storage directory if it doesn't exist
This commit is contained in:
parent
5269ad440e
commit
05a1ce147a
1 changed files with 4 additions and 1 deletions
|
@ -282,8 +282,11 @@ void Patcher::setupDirectories()
|
|||
dataDir.setPath(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation));
|
||||
|
||||
m_patchesDir.setPath(dataDir.absoluteFilePath(QStringLiteral("patch")));
|
||||
m_patchesDirStorageInfo = QStorageInfo(m_patchesDir);
|
||||
if (!m_patchesDir.exists()) {
|
||||
QDir().mkpath(m_patchesDir.path());
|
||||
}
|
||||
|
||||
m_patchesDirStorageInfo = QStorageInfo(m_patchesDir);
|
||||
m_baseDirStorageInfo = QStorageInfo(m_baseDirectory);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue