consolidate engine-dialog widget sensitivity logic.

Use a single function with the complete logic.

Since the callgraph is complex, there is internal state as well as GUI
state (different pages), do not rely on individual methods to get it
right.

A widget's sensitivity should only be controlled by one function.
This commit is contained in:
Robin Gareus 2015-08-11 14:43:00 +02:00
parent 9bc85a553c
commit 6bb51a26eb
2 changed files with 108 additions and 67 deletions

View file

@ -292,6 +292,7 @@ class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList {
void manage_control_app_sensitivity ();
int push_state_to_backend (bool start);
void post_push ();
void update_sensitivity ();
/* latency measurement */
void latency_button_clicked ();