Skip to content

Commit

Permalink
Fix commit sha in window version title in publish builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoooi0 committed Jan 29, 2024
1 parent e7426cd commit cc39176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/MultiFunPlayer/RootViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ internal sealed class RootViewModel : Conductor<IScreen>.Collection.AllActive, I
public int WindowLeft { get; set; }
public int WindowTop { get; set; }

public string WindowTitleVersion => GitVersionInformation.BranchName != "master" ? $"v{GitVersionInformation.MajorMinorPatch}.{GitVersionInformation.ShortSha}"
: $"v{GitVersionInformation.MajorMinorPatch}";
public string WindowTitleVersion => GitVersionInformation.CommitsSinceVersionSource == "0" ? $"v{GitVersionInformation.MajorMinorPatch}"
: $"v{GitVersionInformation.InformationalVersion}";

public RootViewModel(IEventAggregator eventAggregator)
{
Expand Down

0 comments on commit cc39176

Please sign in to comment.