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:
parent
3fd8de3b91
commit
21053381c7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user