add configure without-thirdparty, without-libzmpeg, without-commercial
[goodguy/history.git] / cinelerra-5.1 / cinelerra / pluginlv2gui.C
index 3c0c45663fb946d5e6db5f59025d4fb2a64ec7c7..ea5a102356094b5becc8a659e7f9b5e7a04fa300 100644 (file)
@@ -214,6 +214,7 @@ void PluginLV2ClientWindow::create_objects()
        add_subwindow(title = new BC_Title(x, y, client->title));
        x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8;
        add_subwindow(ui = new PluginLV2ClientUI(this, x1, y));
+       ui->disable();
        y += title->get_h() + 10;
        add_subwindow(varbl = new BC_Title(x, y, ""));
        add_subwindow(range = new BC_Title(x+160, y, ""));
@@ -229,7 +230,6 @@ void PluginLV2ClientWindow::create_objects()
        add_subwindow(slider = new PluginLV2ClientSlider(this, x1, y+10));
        y += pot->get_h() + 10;
 
-       client->init_lv2();
        client->load_configuration();
        client->config.update();
 
@@ -355,4 +355,11 @@ void PluginLV2ClientWindow::lv2_set(int idx, float val)
        lv2_update();
 }
 
+void PluginLV2ClientWindow::lv2_ui_enable()
+{
+       lock_window("PluginLV2ClientWindow::lv2_update");
+       ui->enable();
+       unlock_window();
+}
+
 #endif