summaryrefslogtreecommitdiff
path: root/gtk2_ardour/startup_fsm.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-10-25 11:55:10 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-10-25 11:55:55 -0600
commitc6b8fc78c8de6b516bb7e44d430df1336709682d (patch)
treebf7a5f7e9900def2d9d82e3f6b87c9880c1e5a87 /gtk2_ardour/startup_fsm.cc
parent12c81d9a6706bd9f1b632be029bd12f4b34dcbe6 (diff)
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
Diffstat (limited to 'gtk2_ardour/startup_fsm.cc')
-rw-r--r--gtk2_ardour/startup_fsm.cc6
1 files changed, 4 insertions, 2 deletions
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 ()
{