ArdourButton: Pick up initial action sensitivity

e.g. monitor-section show/hide button
This commit is contained in:
Robin Gareus 2017-05-10 00:15:44 +02:00
parent 0e6e6cfde6
commit 7b0ac0e20a

View File

@ -978,6 +978,7 @@ ArdourButton::set_related_action (RefPtr<Action> act)
if (_action) {
action_tooltip_changed ();
action_sensitivity_changed ();
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
if (tact) {