summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-17 23:30:30 +0100
committerRobin Gareus <robin@gareus.org>2017-02-17 23:30:30 +0100
commitdcce5f00804d839857c4054157af37a8f73788f8 (patch)
tree94df4a53b6f68edd4cc77f4a2e549424063de7ee /gtk2_ardour
parent09bb0bf1e605a395f027a001c2f06bbe6cbdcf82 (diff)
Allow to re-scan VST plugins after changing VST-paths
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/rc_option_editor.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index d724e208f5..95828f1b59 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -3973,6 +3973,13 @@ void RCOptionEditor::edit_lxvst_path () {
pd->hide();
if (r == RESPONSE_ACCEPT) {
_rc_config->set_plugin_path_lxvst(pd->get_serialized_paths());
+
+ MessageDialog msg (_("Re-scan Plugins now?"),
+ false /*no markup*/, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO, true /*modal*/);
+ msg.set_default_response (Gtk::RESPONSE_YES);
+ if (msg.run() == Gtk::RESPONSE_YES) {
+ plugin_scan_refresh ();
+ }
}
delete pd;
}
@@ -3987,6 +3994,12 @@ void RCOptionEditor::edit_vst_path () {
pd->hide();
if (r == RESPONSE_ACCEPT) {
_rc_config->set_plugin_path_vst(pd->get_serialized_paths());
+ MessageDialog msg (_("Re-scan Plugins now?"),
+ false /*no markup*/, Gtk::MESSAGE_QUESTION, Gtk::BUTTONS_YES_NO, true /*modal*/);
+ msg.set_default_response (Gtk::RESPONSE_YES);
+ if (msg.run() == Gtk::RESPONSE_YES) {
+ plugin_scan_refresh ();
+ }
}
delete pd;
}