From 9a1bdaae162e73111e7a755f6b275bb950b74a02 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Sat, 26 Oct 2024 03:24:28 -0500 Subject: [PATCH] UI: Attach dev tools in debug. --- src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs index 0e6be4c37..fad303f63 100644 --- a/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs @@ -170,6 +170,10 @@ namespace Ryujinx.Ava.UI.ViewModels SwitchToGameControl = switchToGameControl; SetMainContent = setMainContent; TopLevel = topLevel; + +#if DEBUG + topLevel.AttachDevTools(new KeyGesture(Avalonia.Input.Key.F12, KeyModifiers.Control)); +#endif } #region Properties @@ -1434,7 +1438,7 @@ namespace Ryujinx.Ava.UI.ViewModels { if (IsGameRunning) { - ConfigurationState.Instance.System.EnableDockedMode.Value = !ConfigurationState.Instance.System.EnableDockedMode.Value; + ConfigurationState.Instance.System.EnableDockedMode.Toggle(); } }