From bd341bdd0b91a27c73f157ceadee9f66d3a2640e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 22 Jul 2023 07:51:09 -0600 Subject: [PATCH] expose new-tracks-follow-session time in session properties editor --- gtk2_ardour/session_option_editor.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gtk2_ardour/session_option_editor.cc b/gtk2_ardour/session_option_editor.cc index 170baeb27b..6ad91d4d29 100644 --- a/gtk2_ardour/session_option_editor.cc +++ b/gtk2_ardour/session_option_editor.cc @@ -406,6 +406,20 @@ SessionOptionEditor::SessionOptionEditor (Session* s) tdo->add (Temporal::BeatTime, _("Musical (beats) time")); add_option (_("Misc"), tdo); + bo = new BoolOption ( + "tracks-follow-session-time", + _("New tracks and busses use session time"), + sigc::mem_fun (*_session_config, &SessionConfiguration::get_tracks_follow_session_time), + sigc::mem_fun (*_session_config, &SessionConfiguration::set_tracks_follow_session_time) + ); + + Gtkmm2ext::UI::instance()->set_tip (bo->tip_widget(), + _("When enabled, new tracks and busses will use the current session default time domain.\n\n" + "When disabled, new tracks and busses will use their primary data type to choose their time domain\n" + "The time domain will determine what units are used for region and automation timing,\n" + "which in turn will affect whether they will change to follow tempo map edits.")); + add_option (_("Misc"), bo); + add_option (_("Misc"), new OptionEditorHeading (_("Metronome"))); add_option (_("Misc"), new BoolOption (