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

Early return

This commit is contained in:
Dean Herbert 2021-01-14 16:33:03 +09:00
parent df08d964a5
commit 8d071f97fb

View File

@ -163,8 +163,8 @@ namespace osu.Game.Overlays.Toolbar
{
base.LoadComplete();
if (Hotkey != null)
{
if (Hotkey == null) return;
realmKeyBinding = realmFactory.Context.All<RealmKeyBinding>().FirstOrDefault(rkb => rkb.RulesetID == null && rkb.ActionInt == (int)Hotkey.Value);
if (realmKeyBinding != null)
@ -178,7 +178,6 @@ namespace osu.Game.Overlays.Toolbar
updateKeyBindingTooltip();
}
}
protected override bool OnMouseDown(MouseDownEvent e) => true;