Skip to content

Commit

Permalink
Merge pull request #25 from DSaladinCH/develop
Browse files Browse the repository at this point in the history
Fix version display
  • Loading branch information
DominicSaladin authored Dec 21, 2023
2 parents 6ebef94 + 9909dcd commit 978f55b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion speed-time/Dialogs/UpdateApp.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public UpdateApp(Version version, DateTime releaseDate)
int[] components = { version.Major, version.Minor, version.Build, version.Revision };
int nonZeroIndex = components.Length - 1;

while (nonZeroIndex > 1 && components[nonZeroIndex] == 0)
while (nonZeroIndex > 1 && components[nonZeroIndex] <= 0)
nonZeroIndex--;

Version = string.Join('.', components.Take(nonZeroIndex + 1));
Expand Down
2 changes: 1 addition & 1 deletion speed-time/speed-time.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<ApplicationIcon>Icon.ico</ApplicationIcon>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<Version>0.13</Version>
<Version>0.13.1</Version>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile></AssemblyOriginatorKeyFile>
</PropertyGroup>
Expand Down

0 comments on commit 978f55b

Please sign in to comment.