Explorar o código

UI: Attach dev tools in debug.

Evan Husted hai 1 ano
pai
achega
9a1bdaae16
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/Ryujinx/UI/ViewModels/MainWindowViewModel.cs

+ 5 - 1
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();
             }
         }