ideconfig: do not wrn if no secondary config file found

This commit is contained in:
mattias 2025-01-30 10:10:37 +01:00
parent c0a475897d
commit 8d5abae84f

View File

@ -321,7 +321,9 @@ begin
debugln(['WARNING: unable to create primary config directory "',GetPrimaryConfigPath,'"']);
exit;
end;
if not CopyFile(SecondaryFilename,PrimaryFilename) then begin
if FileExists(SecondaryFilename)
and not CopyFile(SecondaryFilename,PrimaryFilename) then
begin
debugln(['WARNING: unable to copy config "',SecondaryFilename,'" to "',PrimaryFilename,'"']);
exit;
end;