Skip script-setup if there are no parameters (and name is unique)

This commit is contained in:
Robin Gareus 2017-04-26 19:45:03 +02:00
parent 4b4d64dd7f
commit 8bb26628e3
3 changed files with 32 additions and 12 deletions

View file

@ -60,9 +60,11 @@ class ScriptParameterDialog : public ArdourDialog
public:
ScriptParameterDialog (std::string title, const ARDOUR::LuaScriptInfoPtr&, const std::vector<std::string>&, ARDOUR::LuaScriptParamList&);
std::string name () { return _name_entry.get_text (); }
bool need_interation () const;
private:
void update_sensitivity ();
bool parameters_ok () const;
void active_changed (int, Gtk::CheckButton*, Gtk::Entry*);
void value_changed (int, Gtk::Entry*);