reload plugin btn in prefs, speed gang fader tweaks
[goodguy/history.git] / cinelerra-5.1 / cinelerra / preferencesthread.C
index 01fb08b2357655fef946140f5dc1f6bc31817823..af64fed165775894bd6c9908a9dfcc946b0e3601 100644 (file)
@@ -64,7 +64,7 @@
 
 
 
-#define WIDTH 800
+#define WIDTH 840
 #define HEIGHT 700
 
 
@@ -235,7 +235,9 @@ int PreferencesThread::apply_settings()
                mwindow->restart_status = -1; // reload, need new bcresources
        if( strcmp(preferences->plugin_icons, mwindow->preferences->plugin_icons) != 0 )
                mwindow->restart_status = -1;
-       if( strcmp(preferences->lv2_path, mwindow->preferences->lv2_path) != 0 ) {
+       if( strcmp(preferences->lv2_path, mwindow->preferences->lv2_path) != 0 )
+               reload_plugins = 1;
+       if( reload_plugins ) {
                MWindow::remove_plugin_index();
                File::setenv_path("LV2_PATH", preferences->lv2_path, 1);
                mwindow->restart_status = -1;
@@ -640,6 +642,7 @@ PreferencesApply::PreferencesApply(MWindow *mwindow, PreferencesThread *thread)
 int PreferencesApply::handle_event()
 {
        thread->apply_settings();
+       mwindow->save_defaults();
        return 1;
 }
 int PreferencesApply::resize_event(int w, int h)