13
0

make session/Config now responsible for adding/removing a monitor section

This commit is contained in:
Paul Davis 2018-12-11 12:22:28 -05:00
parent 098b0f8a8b
commit 639dff3a7c

View File

@ -4135,6 +4135,13 @@ Session::config_changed (std::string p, bool ours)
ltc_tx_parse_offset();
} else if (p == "auto-return-target-list") {
follow_playhead_priority ();
} else if (p == "use-monitor-bus") {
bool yn = Config->get_use_monitor_bus();
if (yn && !_monitor_out) {
add_monitor_section ();
} else if (!yn && _monitor_out) {
remove_monitor_section ();
}
}
set_dirty ();