Fix warning spam from ShortKeyName (#42351)

This commit is contained in:
Pieter-Jan Briers 2026-01-11 01:46:54 +01:00 • committed by GitHub
parent f0ae5896b7
commit c0fbaf1228
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ public static class BoundKeyHelper
public static string ShortKeyName(BoundKeyFunction keyFunction)
{
// need to use shortened key names so they fit in the buttons.
return TryGetShortKeyName(keyFunction, out var name) ? Loc.GetString(name) : " ";
return TryGetShortKeyName(keyFunction, out var name) ? name : " ";
}
public static bool IsBound(BoundKeyFunction keyFunction)