13
0

Properly map MonitorSection state on session load

This commit is contained in:
Robin Gareus 2019-03-06 00:47:59 +01:00
parent 6a7750a55d
commit 2bfe0c6ff7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -642,6 +642,7 @@ MonitorSection::set_session (Session* s)
}
populate_buttons ();
map_state ();
} else {
@ -1090,13 +1091,13 @@ MonitorSection::map_state ()
Glib::RefPtr<Action> act;
Glib::RefPtr<ToggleAction> tact;
tact = ActionManager::get_toggle_action (X_("Monitor"), "monitor-cut-all");
tact = ActionManager::get_toggle_action (X_("Monitor Section"), "monitor-cut-all");
tact->set_active (_monitor->cut_all());
tact = ActionManager::get_toggle_action (X_("Monitor"), "monitor-dim-all");
tact = ActionManager::get_toggle_action (X_("Monitor Section"), "monitor-dim-all");
tact->set_active (_monitor->dim_all());
tact = ActionManager::get_toggle_action (X_("Monitor"), "monitor-mono");
tact = ActionManager::get_toggle_action (X_("Monitor Section"), "monitor-mono");
tact->set_active (_monitor->mono());
uint32_t nchans = _monitor->output_streams().n_audio();