Show PluginScanDialog only if needed (cancel VST scan)

This commit is contained in:
Robin Gareus 2019-10-26 01:12:05 +02:00
parent c398576e4a
commit f1d614b15d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 5 deletions

View File

@ -201,10 +201,8 @@ PluginScanDialog::message_handler (std::string type, std::string plugin, bool ca
hide();
connections.drop_connections ();
} else {
if (verbose) {
message.set_text (type + ": " + Glib::path_get_basename(plugin));
show();
}
message.set_text (type + ": " + Glib::path_get_basename(plugin));
show();
}
if (!can_cancel || !cancelled) {

View File

@ -341,7 +341,7 @@ StartupFSM::show_plugin_scan_dialog ()
*/
const bool cache_only = (!Config->get_discover_vst_on_start() || Profile->get_mixbus());
const bool verbose = (new_user || Config->get_discover_vst_on_start());
const bool verbose = new_user;
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));