13
0

use PluginScanDialog to initiate plugin manager refresh

This commit is contained in:
Paul Davis 2019-10-24 21:09:20 -06:00
parent fc5076f926
commit 616c82d16a
2 changed files with 8 additions and 3 deletions

View File

@ -60,6 +60,7 @@
#include "opts.h"
#include "ui_config.h"
#include "pbd/i18n.h"
#include "plugin_scan_dialog.h"
#include "utils.h"
using namespace std;
@ -444,7 +445,8 @@ void
NewUserWizard::discover_plugins ()
{
plugin_disco_button.set_sensitive (false);
PluginManager::instance().refresh();
PluginScanDialog psd (false, true);
psd.start ();
}
void

View File

@ -74,6 +74,7 @@
#include "keyboard.h"
#include "meter_patterns.h"
#include "midi_tracer.h"
#include "plugin_scan_dialog.h"
#include "rc_option_editor.h"
#include "sfdb_ui.h"
#include "transport_masters_dialog.h"
@ -4104,12 +4105,14 @@ RCOptionEditor::parameter_changed (string const & p)
_plugin_prefer_inline->set_sensitive (UIConfiguration::instance().get_open_gui_after_adding_plugin() && UIConfiguration::instance().get_show_inline_display_by_default());
#endif
} else if (p == "conceal-lv1-if-lv2-exists") {
PluginManager::instance().refresh (true);
plugin_scan_refresh ();
}
}
void RCOptionEditor::plugin_scan_refresh () {
PluginManager::instance().refresh();
/* first argument says discover new plugins, second means be verbose */
PluginScanDialog psd (true, true);
psd.start ();
}
void RCOptionEditor::clear_vst_cache () {