mirror of
https://github.com/tnodir/fort
synced 2024-11-15 12:26:26 +00:00
UI: Improve previous commit.
This commit is contained in:
parent
be2216b37a
commit
07cbeb0924
@ -267,8 +267,9 @@ void FortSettings::setupPaths(EnvManager *envManager)
|
|||||||
|
|
||||||
// Copy .ini to .user.ini
|
// Copy .ini to .user.ini
|
||||||
// TODO: COMPAT: Remove after v4.1.0 (via v4.0.0)
|
// TODO: COMPAT: Remove after v4.1.0 (via v4.0.0)
|
||||||
if (profilePath() != userPath()) {
|
const QString iniUserPath = userPath() + APP_BASE + ".user.ini";
|
||||||
FileUtil::copyFile(profilePath() + APP_BASE + ".ini", userPath() + APP_BASE + ".user.ini");
|
if (!isService() && !FileUtil::fileExists(iniUserPath)) {
|
||||||
|
FileUtil::copyFile(profilePath() + APP_BASE + ".ini", iniUserPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user