UI: Improve previous commit.

This commit is contained in:
Nodir Temirkhodjaev 2021-05-16 17:47:14 +03:00
parent be2216b37a
commit 07cbeb0924

View File

@ -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);
} }
} }