UI: FortSettings: Simplify setupPaths().

This commit is contained in:
Nodir Temirkhodjaev 2021-05-16 19:07:55 +03:00
parent ca4cf234b3
commit 6773991e4f
2 changed files with 7 additions and 1 deletions

View File

@ -116,7 +116,9 @@ void FortSettings::setupGlobal()
void FortSettings::initialize(const QStringList &args, EnvManager *envManager)
{
processArguments(args);
setupPaths(envManager);
createPaths();
setupIni(profilePath() + APP_BASE + ".ini");
@ -251,8 +253,10 @@ void FortSettings::setupPaths(EnvManager *envManager)
} else {
m_userPath = expandPath(m_userPath, envManager);
}
}
// Create directories
void FortSettings::createPaths()
{
FileUtil::makePath(profilePath());
FileUtil::makePath(statPath());
FileUtil::makePath(logsPath());

View File

@ -80,7 +80,9 @@ protected:
private:
void processArguments(const QStringList &args);
void setupPaths(EnvManager *envManager);
void createPaths();
private:
uint m_isDefaultProfilePath : 1;