Skip to content

Commit

Permalink
Viewer: Added UHP engine to title bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jonthysell committed Jul 29, 2023
1 parent 3478511 commit 0ff30ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## next ##

* Viewer: Added UHP engine to title bar
* Viewer: Updated Avalonia to 11.0.1
* Viewer: Updated Markdown.Avalonia.Tight to 11.0.0

Expand Down
5 changes: 5 additions & 0 deletions src/Mzinga.Viewer/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public static string Title
{
string title = AppVM.ProgramTitle;

if (AppVM.EngineWrapper is CLIEngineWrapper)
{
title += $" [{AppVM.EngineWrapper.ID}]";
}

if (IsReviewMode)
{
var fileUri = AppVM.EngineWrapper.CurrentGameSettings?.GameRecording?.FileUri;
Expand Down

0 comments on commit 0ff30ca

Please sign in to comment.