mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Remove TranslatedInternalString, use ComponentInterfaceSymbol
This commit is contained in:
@@ -860,16 +860,16 @@ void ToolBar::MakeAlternateImages(AButton &button, int idx,
|
||||
|
||||
void ToolBar::SetButtonToolTip
|
||||
(AudacityProject &theProject,
|
||||
AButton &button, const TranslatedInternalString commands[], size_t nCommands)
|
||||
AButton &button, const ComponentInterfaceSymbol commands[], size_t nCommands)
|
||||
{
|
||||
wxString result;
|
||||
TranslatableString result;
|
||||
const auto project = &theProject;
|
||||
const auto commandManager =
|
||||
project ? &CommandManager::Get( *project ) : nullptr;
|
||||
if (commandManager)
|
||||
result =
|
||||
commandManager->DescribeCommandsAndShortcuts(commands, nCommands);
|
||||
button.SetToolTip( TranslatableString{ result } );
|
||||
button.SetToolTip( result );
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user