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:
parent
0569572d1b
commit
976a5eb5ec
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user