Skip to content

Commit

Permalink
Fix toolbar keybinding hint not clearing after unbinding the keybinding
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Dec 23, 2023
1 parent 5b03dc8 commit 68430d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osu.Game/Overlays/Toolbar/ToolbarButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,9 @@ private void updateKeyBindingTooltip(string keyCombination)
{
string keyBindingString = keyCombinationProvider.GetReadableString(keyCombination);

if (!string.IsNullOrEmpty(keyBindingString))
keyBindingTooltip.Text = $" ({keyBindingString})";
keyBindingTooltip.Text = !string.IsNullOrEmpty(keyBindingString)
? $" ({keyBindingString})"
: string.Empty;
}
}

Expand Down

0 comments on commit 68430d6

Please sign in to comment.