1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:33:21 +08:00

Fix toolbar keybinding hint not clearing after unbinding the keybinding

This commit is contained in:
Bartłomiej Dach 2023-12-23 19:39:17 +01:00
parent 5b03dc8d0b
commit 68430d6ecd
No known key found for this signature in database

View File

@ -208,8 +208,9 @@ namespace osu.Game.Overlays.Toolbar
{ {
string keyBindingString = keyCombinationProvider.GetReadableString(keyCombination); string keyBindingString = keyCombinationProvider.GetReadableString(keyCombination);
if (!string.IsNullOrEmpty(keyBindingString)) keyBindingTooltip.Text = !string.IsNullOrEmpty(keyBindingString)
keyBindingTooltip.Text = $" ({keyBindingString})"; ? $" ({keyBindingString})"
: string.Empty;
} }
} }