lazdelphi: do not store default values

This commit is contained in:
mattias 2023-06-24 12:29:22 +02:00
parent 45ded69b77
commit 4289e7ad30

View File

@ -577,12 +577,18 @@ end;
procedure TLazProjectDelphiOptions.SetADO(AValue: String);
begin
CustomData[pKeyAdditionalOptions]:=aValue
if AValue<>'' then
CustomData[pKeyAdditionalOptions]:=aValue
else
CustomData.Remove(pKeyAdditionalOptions);
end;
procedure TLazProjectDelphiOptions.SetDCF(AValue: Boolean);
begin
CustomData[pKeyGenConfigFile]:=IntToStr(Ord(aValue));
if AValue then
CustomData[pKeyGenConfigFile]:=IntToStr(Ord(aValue))
else
CustomData.Remove(pKeyGenConfigFile);
end;