Check toggle visible key from profiler

This commit is contained in:
Andy Adshead 2019-02-15 12:46:37 +00:00
parent e88c24f098
commit f0626920f2

View file

@ -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: