misc: Use a method to create window titles.

This commit is contained in:
Evan Husted 2024-10-14 15:01:31 -05:00
parent 40a488799e
commit 5f6d9eef6b
6 changed files with 13 additions and 8 deletions

View file

@ -79,7 +79,7 @@ namespace Ryujinx.Ava.UI.Windows
UiHandler = new AvaHostUIHandler(this);
ViewModel.Title = $"Ryujinx {Program.Version}";
ViewModel.Title = App.FormatTitle();
// NOTE: Height of MenuBar and StatusBar is not usable here, since it would still be 0 at this point.
StatusBarHeight = StatusBarView.StatusBar.MinHeight;