1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

Fix skin editor potentially eating GlobalAction.Back when not displayed

This commit is contained in:
Dean Herbert 2021-07-22 15:59:00 +09:00
parent 3fd8de3b91
commit 21053381c7

View File

@ -37,8 +37,10 @@ namespace osu.Game.Skinning.Editor
switch (action)
{
case GlobalAction.Back:
if (skinEditor?.State.Value == Visibility.Visible)
Hide();
if (skinEditor?.State.Value != Visibility.Visible)
break;
Hide();
return true;
case GlobalAction.ToggleSkinEditor: