1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 08:38:39 +02:00

Fix bug 1466

Display just the button name in tooltip when no shortcut.
This commit is contained in:
Steve Daulton 2016-08-03 00:27:07 +01:00
parent 0569572d1b
commit 976a5eb5ec

View File

@ -799,10 +799,10 @@ void ToolBar::SetButtonToolTip
if (!iter->empty()) {
if (commandManager) {
auto keyStr = commandManager->GetKeyFromName(*iter);
if (keyStr.empty())
keyStr = _("no key");
result += wxT(" ");
result += Internat::Parenthesize(KeyStringDisplay(keyStr, true));
if (!keyStr.empty()) {
result += wxT(" ");
result += Internat::Parenthesize(KeyStringDisplay(keyStr, true));
}
}
}
++iter;