From 0cdf7cfe21c7f05109e51411c28927f3c6785665 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Sat, 18 Jan 2025 22:47:55 -0600 Subject: [PATCH] UI: Open cheat manager in catch-all try --- src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs index 0885349f8..61dbf3a43 100644 --- a/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs +++ b/src/Ryujinx/UI/Views/Main/MainMenuBarView.axaml.cs @@ -43,7 +43,13 @@ namespace Ryujinx.Ava.UI.Views.Main PauseEmulationMenuItem.Command = new RelayCommand(() => ViewModel.AppHost?.Pause()); ResumeEmulationMenuItem.Command = new RelayCommand(() => ViewModel.AppHost?.Resume()); StopEmulationMenuItem.Command = new AsyncRelayCommand(() => ViewModel.AppHost?.ShowExitPrompt().OrCompleted()); - CheatManagerMenuItem.Command = new AsyncRelayCommand(OpenCheatManagerForCurrentApp); + CheatManagerMenuItem.Command = new AsyncRelayCommand(async () => + { + try + { + await OpenCheatManagerForCurrentApp(); + } catch {} + }); InstallFileTypesMenuItem.Command = new AsyncRelayCommand(InstallFileTypes); UninstallFileTypesMenuItem.Command = new AsyncRelayCommand(UninstallFileTypes); XciTrimmerMenuItem.Command = new AsyncRelayCommand(() => XCITrimmerWindow.Show(ViewModel));