mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-15 07:01:18 +02:00
Fix bug 1466
Display just the button name in tooltip when no shortcut.
This commit is contained in:
@@ -799,12 +799,12 @@ void ToolBar::SetButtonToolTip
|
||||
if (!iter->empty()) {
|
||||
if (commandManager) {
|
||||
auto keyStr = commandManager->GetKeyFromName(*iter);
|
||||
if (keyStr.empty())
|
||||
keyStr = _("no key");
|
||||
if (!keyStr.empty()) {
|
||||
result += wxT(" ");
|
||||
result += Internat::Parenthesize(KeyStringDisplay(keyStr, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
++iter;
|
||||
}
|
||||
if (iter != end)
|
||||
|
Reference in New Issue
Block a user