13
0

Set VCA Pane toggle sensitivity

This commit is contained in:
Robin Gareus 2018-08-09 18:52:20 +02:00
parent 83981a37a3
commit ef2abc35b9

View File

@ -1513,11 +1513,17 @@ Mixer_UI::redisplay_track_list ()
if (n_masters == 0) {
UIConfiguration::instance().set_mixer_strip_visibility (VisibilityGroup::remove_element (UIConfiguration::instance().get_mixer_strip_visibility(), X_("VCA")));
vca_vpacker.hide ();
Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleVCAPane");
if (act) {
act->set_sensitive (false);
}
} else {
UIConfiguration::instance().set_mixer_strip_visibility (VisibilityGroup::add_element (UIConfiguration::instance().get_mixer_strip_visibility(), X_("VCA")));
Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleVCAPane");
if (act) {
act->set_sensitive (true);
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic(act);
showhide_vcas (tact->get_active());
} else {