Remove redundant action prefix
From Ardour5 to Ardour6 the AccessAction handle changes from "Editor/script-action-<N>" to "LuaAction/script-<N>"
This commit is contained in:
parent
d94a747180
commit
95932f92de
|
@ -305,7 +305,7 @@ ARDOUR_UI::setup_windows ()
|
|||
LuaInstance::instance()->ActionChanged.connect (sigc::mem_fun (*this, &ARDOUR_UI::action_script_changed));
|
||||
|
||||
for (int i = 0; i < MAX_LUA_ACTION_BUTTONS; ++i) {
|
||||
std::string const a = string_compose (X_("script-action-%1"), i + 1);
|
||||
std::string const a = string_compose (X_("script-%1"), i + 1);
|
||||
Glib::RefPtr<Action> act = ActionManager::get_action(X_("LuaAction"), a.c_str());
|
||||
assert (act);
|
||||
action_script_call_btn[i].set_name ("lua action button");
|
||||
|
@ -439,7 +439,7 @@ ARDOUR_UI::action_script_changed (int i, const std::string& n)
|
|||
}
|
||||
}
|
||||
|
||||
std::string const a = string_compose (X_("script-action-%1"), i + 1);
|
||||
std::string const a = string_compose (X_("script-%1"), i + 1);
|
||||
Glib::RefPtr<Action> act = ActionManager::get_action(X_("LuaAction"), a.c_str());
|
||||
assert (act);
|
||||
if (n.empty ()) {
|
||||
|
|
|
@ -490,7 +490,7 @@ Editor::register_actions ()
|
|||
Glib::RefPtr<ActionGroup> lua_script_actions = ActionManager::create_action_group (bindings, X_("LuaAction"));
|
||||
|
||||
for (int i = 1; i <= MAX_LUA_ACTION_SCRIPTS; ++i) {
|
||||
string const a = string_compose (X_("script-action-%1"), i);
|
||||
string const a = string_compose (X_("script-%1"), i);
|
||||
string const n = string_compose (_("Unset #%1"), i);
|
||||
act = ActionManager::register_action (lua_script_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1));
|
||||
act->set_tooltip (_("no action bound"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user