diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-19 17:20:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-19 17:20:45 +0200 |
commit | 27335a2034a14b12638ca2fd5cb6677e0be8037e (patch) | |
tree | ec2419332335e60fdb15159ba58e5bdbb09ae173 /gtk2_ardour/ardour_ui.cc | |
parent | 00169f1da104def0a2d13d48c6b6cac1ec8a7e06 (diff) |
GUI part of 00169f1da (TRY_AUTOSTART_ENGINE)
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index a3647ab27e..d221db743c 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -5140,11 +5140,7 @@ ARDOUR_UI::do_audio_midi_setup (uint32_t desired_sample_rate) audio_midi_setup->set_desired_sample_rate (desired_sample_rate); audio_midi_setup->set_position (WIN_POS_CENTER); - // TODO make this a preference. - // (engine state is parsed by the GUI, but currently saved - // in preferences: ARDOUR::Config->extra_xml - // soooo where should this option go?) - if (getenv("TRY_AUTOSTART_ENGINE")) { + if (Config->get_try_autostart_engine () || getenv ("TRY_AUTOSTART_ENGINE")) { audio_midi_setup->try_autostart (); if (ARDOUR::AudioEngine::instance()->running()) { return 0; |