mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:59:38 +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
|
||||
// TODO: COMPAT: Remove after v4.1.0 (via v4.0.0)
|
||||
if (profilePath() != userPath()) {
|
||||
FileUtil::copyFile(profilePath() + APP_BASE + ".ini", userPath() + APP_BASE + ".user.ini");
|
||||
const QString iniUserPath = 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