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,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;
|
||||||
|
Reference in New Issue
Block a user