General fix for ToolbarButton toggle repetition

This commit is contained in:
Ame
2022-04-02 20:45:00 +02:00
parent 0f94616890
commit 35629e9be8
2 changed files with 2 additions and 24 deletions

View File

@ -190,7 +190,7 @@ namespace osu.Game.Overlays.Toolbar
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
{
if (e.Action == Hotkey)
if (!e.Repeat && e.Action == Hotkey)
{
TriggerClick();
return true;