Allow to re-scan VST plugins after changing VST-paths
authorRobin Gareus <robin@gareus.org>
Fri, 17 Feb 2017 22:30:30 +0000 (23:30 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 17 Feb 2017 22:30:30 +0000 (23:30 +0100)
gtk2_ardour/rc_option_editor.cc

index d724e208f5a9265623baa9afb41970231b8b6fcb..95828f1b5988d9a988be9b6a8abaa5104a118be1 100644 (file)
@@ -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;
 }