mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-22 08:31:14 +01:00
Redo CommandManager::DescribeCommandsAndShortcuts with pairs...
... Later we may make other types for the members of that pair.
This commit is contained in:
@@ -115,9 +115,8 @@ wxString CloseButtonHandle::Tip(const wxMouseState &) const
|
||||
return name;
|
||||
|
||||
auto commandManager = project->GetCommandManager();
|
||||
std::vector<wxString> commands;
|
||||
commands.push_back(name);
|
||||
commands.push_back(wxT("TrackClose"));
|
||||
CommandManager::LocalizedCommandNameVector commands( 1u,
|
||||
{ name, wxT("TrackClose") } );
|
||||
return commandManager->DescribeCommandsAndShortcuts(commands);
|
||||
}
|
||||
|
||||
@@ -176,9 +175,8 @@ wxString MenuButtonHandle::Tip(const wxMouseState &) const
|
||||
return name;
|
||||
|
||||
auto commandManager = project->GetCommandManager();
|
||||
std::vector<wxString> commands;
|
||||
commands.push_back(name);
|
||||
commands.push_back(wxT("TrackMenu"));
|
||||
CommandManager::LocalizedCommandNameVector commands( 1u,
|
||||
{ name, wxT("TrackMenu") } );
|
||||
return commandManager->DescribeCommandsAndShortcuts(commands);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user