Version number added to the config file.

git-svn-id: trunk@53446 -
This commit is contained in:
balazs 2016-11-25 07:34:57 +00:00
parent e6e3bd4ae8
commit 473cde7526

View File

@ -29,6 +29,9 @@ interface
uses uses
Classes, SysUtils, LazIDEIntf, Laz2_XMLCfg, LazFileUtils; Classes, SysUtils, LazIDEIntf, Laz2_XMLCfg, LazFileUtils;
const
Version = 1;
type type
{ TOptions } { TOptions }
TProxySettings = record TProxySettings = record
@ -130,6 +133,7 @@ end;
procedure TOptions.Save; procedure TOptions.Save;
begin begin
FXML.SetDeleteValue('Version/Value', Version, 0);
FXML.SetDeleteValue('General/RemoteRepository/Value', FRemoteRepository, ''); FXML.SetDeleteValue('General/RemoteRepository/Value', FRemoteRepository, '');
FXML.SetDeleteValue('General/ForceDownloadAndExtract/Value', FForceDownloadAndExtract, True); FXML.SetDeleteValue('General/ForceDownloadAndExtract/Value', FForceDownloadAndExtract, True);
FXML.SetDeleteValue('General/DeleteZipAfterInstall/Value', FDeleteZipAfterInstall, True); FXML.SetDeleteValue('General/DeleteZipAfterInstall/Value', FDeleteZipAfterInstall, True);