mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 06:13:04 +08:00
Early return
This commit is contained in:
parent
df08d964a5
commit
8d071f97fb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user