lua action details (button sensitivity, text ellipsis)

This commit is contained in:
Robin Gareus 2016-04-25 12:56:21 +02:00
parent f4f9963cdd
commit 5e0f0fc9f2
3 changed files with 10 additions and 1 deletions

View file

@ -5747,9 +5747,11 @@ Editor::set_script_action_name (int i, const std::string& n)
if (n.empty ()) {
act->set_label (string_compose (_("Unset #%1"), i + 1));
act->set_tooltip (_("(no action bound"));
act->set_sensitive (false);
} else {
act->set_label (n);
act->set_tooltip (n);
act->set_sensitive (true);
}
KeyEditor::UpdateBindings ();
}