change the renaming process in Bindings::relativize()

We used to strip the group name from an action name, then prepend the
Bindings object name.

Now we simply prepend the Bindings object name.

So if the named action was Zoom/temporal-zoom-in it becomes, for example,
MidiCueEditorZoom/temporal-zoom-in
This commit is contained in:
Paul Davis
2025-03-12 17:56:19 -06:00
parent 3aaff8ff14
commit bfa39cd57a

View File

@@ -536,16 +536,16 @@ void
Bindings::relativize ()
{
for (auto & [key,action_info] : press_bindings) {
action_info.action_name = _name + action_info.action_name.substr (action_info.action_name.find_first_of ('/'));
action_info.action_name = _name + action_info.action_name;
}
for (auto & [key,action_info] : release_bindings) {
action_info.action_name = _name + action_info.action_name.substr (action_info.action_name.find_first_of ('/'));
action_info.action_name = _name + action_info.action_name;
}
for (auto & [mb,action_info] : button_press_bindings) {
action_info.action_name = _name + action_info.action_name.substr (action_info.action_name.find_first_of ('/'));
action_info.action_name = _name + action_info.action_name;
}
for (auto & [mb,action_info] : button_release_bindings) {
action_info.action_name = _name + action_info.action_name.substr (action_info.action_name.find_first_of ('/'));
action_info.action_name = _name + action_info.action_name;
}
}