Skip to content

Commit

Permalink
Merge pull request #6 from JensBorrisholt/Development
Browse files Browse the repository at this point in the history
Upgrade version number to 3.1
  • Loading branch information
JensBorrisholt authored Jan 20, 2024
2 parents f2af011 + 2527d82 commit 2e119a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Components/uUpdate.pas
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface
DTO.GitHUB.Release, Pkg.JSON.ThreadingEx;

const
ProgramVersion: double = 3.0;
ProgramVersion: double = 3.1;
UpdateUrl = 'https://api.github.com/repos/JensBorrisholt/Delphi-JsonToDelphiClass/releases';
ProgramUrl = 'https://github.com/JensBorrisholt/Delphi-JsonToDelphiClass';

Expand Down
1 change: 0 additions & 1 deletion Generator GUI/JsonToDelphiClass.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
</Platform>
</DeployFile>
<DeployFile LocalName="Win32\Debug\JsonToDelphiClass.exe" Configuration="Debug" Class="ProjectOutput"/>
<DeployFile LocalName="Win32\Debug\JsonToDelphiClass.exe" Configuration="Debug" Class="ProjectOutput"/>
<DeployFile LocalName="Win32\Release\JsonToDelphiClass.exe" Configuration="Release" Class="ProjectOutput"/>
<DeployClass Name="AdditionalDebugSymbols">
<Platform Name="iOSSimulator">
Expand Down
4 changes: 2 additions & 2 deletions Generator GUI/MainFormU.pas
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ procedure TMainForm.FormCreate(Sender: TObject);
begin
FJsonMapper := TPkgJsonMapper.Create;
FJson := '';
Caption := 'JsonToDelphiClass - ' + FloatToJson(ProgramVersion) + '.0 | By Jens Borrisholt';
Caption := 'JsonToDelphiClass - ' + FormatFloat('#.0', ProgramVersion, TFormatSettings.Invariant) + ' | By Jens Borrisholt';

CheckForUpdate(
procedure(aRelease: TRelease; aErrorMessage: string)
Expand All @@ -349,7 +349,7 @@ procedure TMainForm.FormCreate(Sender: TObject);
if (aRelease = nil) and (aErrorMessage = '') then
begin
Label1.StyleLookup := 'LabelGreenStyle';
Label1.Text := 'Your version ' + FloatToJson(uUpdate.ProgramVersion) + ' is up to date! For more information about JsonToDelphiClass click here!';
Label1.Text := 'Your version ' + FormatFloat('#.0', ProgramVersion, TFormatSettings.Invariant) + ' is up to date! For more information about JsonToDelphiClass click here!';
(Label1.FindStyleResource('text') as TText).OnClick := Label1Click;
end
else if aErrorMessage = '' then
Expand Down

0 comments on commit 2e119a4

Please sign in to comment.