From 793f830ffd10537672265b735d9632345bd68ae1 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Mon, 30 Oct 2023 00:08:09 -0400 Subject: [PATCH] Match cheats heading to other managers --- src/Ryujinx.Ava/Assets/Locales/en_US.json | 3 +-- src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml | 12 ------------ src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml.cs | 5 +---- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/src/Ryujinx.Ava/Assets/Locales/en_US.json b/src/Ryujinx.Ava/Assets/Locales/en_US.json index 72b5e8e3c..c0493c719 100644 --- a/src/Ryujinx.Ava/Assets/Locales/en_US.json +++ b/src/Ryujinx.Ava/Assets/Locales/en_US.json @@ -591,10 +591,9 @@ "SelectDlcDialogTitle": "Select DLC files", "SelectUpdateDialogTitle": "Select update files", "UserProfileWindowTitle": "User Profiles Manager", - "CheatWindowTitle": "Cheats Manager", "DlcWindowTitle": "Manage Downloadable Content for {0} ({1})", "UpdateWindowTitle": "Title Update Manager", - "CheatWindowHeading": "Cheats Available for {0} [{1}]", + "CheatWindowHeading": "Manage Cheats for {0} ({1})", "BuildId": "BuildId:", "DlcWindowHeading": "{0} Downloadable Content(s)", "UserProfilesEditProfile": "Edit Selected", diff --git a/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml b/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml index 00047bdac..b0fbea2e5 100644 --- a/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml +++ b/src/Ryujinx.Ava/UI/Windows/CheatWindow.axaml @@ -23,18 +23,6 @@ - LoadedCheats { get; } - - public string Heading { get; } public string BuildId { get; } public CheatWindow() @@ -38,7 +36,6 @@ namespace Ryujinx.Ava.UI.Windows { LoadedCheats = new AvaloniaList(); - Heading = LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.CheatWindowHeading, titleName, titleId.ToUpper()); BuildId = ApplicationData.GetApplicationBuildId(virtualFileSystem, titlePath); InitializeComponent(); @@ -102,7 +99,7 @@ namespace Ryujinx.Ava.UI.Windows SecondaryButtonText = "", CloseButtonText = "", Content = new CheatWindow(virtualFileSystem, titleId, titleName, titlePath), - Title = string.Format(LocaleManager.Instance[LocaleKeys.CheatWindowTitle]), + Title = string.Format(LocaleManager.Instance[LocaleKeys.CheatWindowHeading], titleName, titleId.ToUpper()), }; Style bottomBorder = new(x => x.OfType().Name("DialogSpace").Child().OfType());