Fix crash when pressing clear button twice

This commit is contained in:
smoogipoo
2020-06-04 22:17:00 +09:00
parent c4698e61ec
commit 9c1542f897
2 changed files with 48 additions and 2 deletions

View File

@ -274,6 +274,9 @@ namespace osu.Game.Overlays.KeyBinding
private void clear()
{
if (bindTarget == null)
return;
bindTarget.UpdateKeyCombination(InputKey.None);
finalise();
}
@ -333,7 +336,7 @@ namespace osu.Game.Overlays.KeyBinding
}
}
private class ClearButton : TriangleButton
public class ClearButton : TriangleButton
{
public ClearButton()
{