UI: Attach dev tools in debug.

This commit is contained in:
Evan Husted 2024-10-26 03:24:28 -05:00
parent c2f6d5d029
commit 9a1bdaae16

View file

@ -170,6 +170,10 @@ namespace Ryujinx.Ava.UI.ViewModels
SwitchToGameControl = switchToGameControl; SwitchToGameControl = switchToGameControl;
SetMainContent = setMainContent; SetMainContent = setMainContent;
TopLevel = topLevel; TopLevel = topLevel;
#if DEBUG
topLevel.AttachDevTools(new KeyGesture(Avalonia.Input.Key.F12, KeyModifiers.Control));
#endif
} }
#region Properties #region Properties
@ -1434,7 +1438,7 @@ namespace Ryujinx.Ava.UI.ViewModels
{ {
if (IsGameRunning) if (IsGameRunning)
{ {
ConfigurationState.Instance.System.EnableDockedMode.Value = !ConfigurationState.Instance.System.EnableDockedMode.Value; ConfigurationState.Instance.System.EnableDockedMode.Toggle();
} }
} }