From c6b8fc78c8de6b516bb7e44d430df1336709682d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 25 Oct 2019 11:55:10 -0600 Subject: make logic for creation of startup plugin scan a little clearer Also, do not actually show dialog unless it's a new user or the user explicitly asks for VST scan at startup --- gtk2_ardour/startup_fsm.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/startup_fsm.cc b/gtk2_ardour/startup_fsm.cc index ad0cf7e8d2..2628f04fdf 100644 --- a/gtk2_ardour/startup_fsm.cc +++ b/gtk2_ardour/startup_fsm.cc @@ -340,7 +340,10 @@ StartupFSM::show_plugin_scan_dialog () that we run here, during startup, should only use the existing plugin cache (if any). */ - plugin_scan_dialog = new PluginScanDialog ((!Config->get_discover_vst_on_start() || Profile->get_mixbus()), new_user); + const bool cache_only = (!Config->get_discover_vst_on_start() || Profile->get_mixbus()); + const bool verbose = (new_user || Config->get_discover_vst_on_start()); + + plugin_scan_dialog = new PluginScanDialog (cache_only, verbose); current_dialog_connection = plugin_scan_dialog->signal_response().connect (sigc::bind (sigc::mem_fun (*this, &StartupFSM::dialog_response_handler), PluginDialog)); plugin_scan_dialog->set_position (WIN_POS_CENTER); @@ -354,7 +357,6 @@ StartupFSM::show_plugin_scan_dialog () DEBUG_TRACE (DEBUG::GuiStartup, "plugin dialog done\n"); } - void StartupFSM::show_new_user_dialog () { -- cgit v1.2.3