Skip to content

Commit

Permalink
show version in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzzerd committed Sep 23, 2023
1 parent f1db47d commit f2d4496
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions SharpFM.App/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ public async Task CopySelectedToClip(CancellationToken token)
}
}

public string Version
{
get
{
var assembly = System.Reflection.Assembly.GetExecutingAssembly();
var version = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location).ProductVersion;
return version ?? "v?.?.?";
}
}

public ObservableCollection<ClipViewModel> Keys { get; set; }

private ClipViewModel? _selectedClip;
Expand Down

0 comments on commit f2d4496

Please sign in to comment.