Don't sort automation macros by name
Leaving macros in the order they're registered makes it possible to group related macros. Once a UI for editing the menus has been added it might make sense to default to sorting them, but for now it's just unhelpful. Closes #1381. Originally committed to SVN as r6273.
This commit is contained in:
parent
896a1ab902
commit
db18cea308
1 changed files with 0 additions and 1 deletions
|
@ -390,7 +390,6 @@ class AutomationMenu : public wxMenu {
|
|||
std::vector<cmd::Command*> macros = wxGetApp().global_scripts->GetMacros();
|
||||
std::vector<cmd::Command*> local_macros = c->local_scripts->GetMacros();
|
||||
copy(local_macros.begin(), local_macros.end(), back_inserter(macros));
|
||||
sort(macros.begin(), macros.end(), comp_str_menu(c));
|
||||
|
||||
if (macros.empty())
|
||||
Append(-1, _("No Automation macros loaded"))->Enable(false);
|
||||
|
|
Loading…
Reference in a new issue