From f0626920f2e93bef6ee62bd650cdf4c057d25a9a Mon Sep 17 00:00:00 2001 From: Andy Adshead Date: Fri, 15 Feb 2019 12:46:37 +0000 Subject: [PATCH] Check toggle visible key from profiler --- Ryujinx.Profiler/UI/ProfileWindow.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Ryujinx.Profiler/UI/ProfileWindow.cs b/Ryujinx.Profiler/UI/ProfileWindow.cs index cde813b2d9..ee09512b74 100644 --- a/Ryujinx.Profiler/UI/ProfileWindow.cs +++ b/Ryujinx.Profiler/UI/ProfileWindow.cs @@ -680,6 +680,13 @@ namespace Ryujinx.Profiler.UI protected override void OnKeyUp(KeyboardKeyEventArgs e) { + // Can't go into switch as value isn't constant + if (e.Key == Profile.Controls.Buttons.ToggleProfiler) + { + ToggleVisible(); + return; + } + switch (e.Key) { case Key.BackSpace: