mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:35:07 +00:00
UI: FortSettings: Simplify setupPaths().
This commit is contained in:
parent
ca4cf234b3
commit
6773991e4f
@ -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());
|
||||
|
@ -80,7 +80,9 @@ protected:
|
||||
|
||||
private:
|
||||
void processArguments(const QStringList &args);
|
||||
|
||||
void setupPaths(EnvManager *envManager);
|
||||
void createPaths();
|
||||
|
||||
private:
|
||||
uint m_isDefaultProfilePath : 1;
|
||||
|
Loading…
Reference in New Issue
Block a user