mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
Properly map MonitorSection state on session load
This commit is contained in:
parent
6a7750a55d
commit
2bfe0c6ff7
1 changed files with 4 additions and 3 deletions
|
|
@ -642,6 +642,7 @@ MonitorSection::set_session (Session* s)
|
||||||
}
|
}
|
||||||
|
|
||||||
populate_buttons ();
|
populate_buttons ();
|
||||||
|
map_state ();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
@ -1090,13 +1091,13 @@ MonitorSection::map_state ()
|
||||||
Glib::RefPtr<Action> act;
|
Glib::RefPtr<Action> act;
|
||||||
Glib::RefPtr<ToggleAction> tact;
|
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->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->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());
|
tact->set_active (_monitor->mono());
|
||||||
|
|
||||||
uint32_t nchans = _monitor->output_streams().n_audio();
|
uint32_t nchans = _monitor->output_streams().n_audio();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue