add optional buttons to trigger lua scripted actions.

This commit is contained in:
Robin Gareus 2016-04-25 00:16:08 +02:00
parent 55fb20f491
commit 9c622e3c99
8 changed files with 108 additions and 2 deletions

View file

@ -5746,8 +5746,10 @@ Editor::set_script_action_name (int i, const std::string& n)
assert (act);
if (n.empty ()) {
act->set_label (string_compose (_("Unset #%1"), i + 1));
act->set_tooltip (_("(no action bound"));
} else {
act->set_label (n);
act->set_tooltip (n);
}
KeyEditor::UpdateBindings ();
}