1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +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 (!iter->empty()) {
if (commandManager) { if (commandManager) {
auto keyStr = commandManager->GetKeyFromName(*iter); auto keyStr = commandManager->GetKeyFromName(*iter);
if (keyStr.empty()) if (!keyStr.empty()) {
keyStr = _("no key"); result += wxT(" ");
result += wxT(" "); result += Internat::Parenthesize(KeyStringDisplay(keyStr, true));
result += Internat::Parenthesize(KeyStringDisplay(keyStr, true)); }
} }
} }
++iter; ++iter;