diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-11 12:22:28 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-11 12:22:28 -0500 |
commit | 639dff3a7c776d5da7b481beb627afab106b6513 (patch) | |
tree | 9da6cffa4276b001ad313c30a7c076c119391b1e /libs | |
parent | 098b0f8a8b904313bc2e9e3147cc3c05fd83f3e6 (diff) |
make session/Config now responsible for adding/removing a monitor section
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_state.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 874fa30f11..8809ab388c 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -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 (); |