From fb6e4b75ab51b3269941e779a923db85255ebfd0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 6 Oct 2025 22:13:38 +0200 Subject: [PATCH] Expose preference whether to recall hw connections --- gtk2_ardour/rc_option_editor.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index fa5e76da29..1dd0482313 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -4663,6 +4663,20 @@ These settings will only take effect after %1 is restarted.\n\ } // !mixbus + add_option (_("Signal Flow"), new OptionEditorHeading (_("Hardware Patchbay"))); + + bo = new BoolOption ( + "restore-hardware-connections", + _("Restore hardware to hardware connections"), + sigc::mem_fun (*_rc_config, &RCConfiguration::get_restore_hardware_connections), + sigc::mem_fun (*_rc_config, &RCConfiguration::set_restore_hardware_connections) + ); + + add_option (_("Signal Flow"), bo); + Gtkmm2ext::UI::instance()->set_tip (bo->tip_widget(), + _("When enabled, external per session hardware to hardware connections are restored on session load. This applies to internal backends (ALSA, Portaudio/ASIO, CoreAudio) only.")); + + /* Click */ add_option (_("Metronome"), new OptionEditorHeading (_("Metronome")));