projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vicon jittering, opengl no draw_refresh if no ovly for last frame
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
preferencesthread.C
diff --git
a/cinelerra-5.1/cinelerra/preferencesthread.C
b/cinelerra-5.1/cinelerra/preferencesthread.C
index bf921724d531bee53da724ae209c508aa9aae89b..c0a78d2a1014d28e025f861e4ed2f0db09ef5752 100644
(file)
--- a/
cinelerra-5.1/cinelerra/preferencesthread.C
+++ b/
cinelerra-5.1/cinelerra/preferencesthread.C
@@
-32,6
+32,7
@@
#include "bchash.h"
#include "edl.h"
#include "edlsession.h"
#include "bchash.h"
#include "edl.h"
#include "edlsession.h"
+#include "file.h"
#include "filesystem.h"
#include "fonts.h"
#include "interfaceprefs.h"
#include "filesystem.h"
#include "fonts.h"
#include "interfaceprefs.h"
@@
-234,6
+235,11
@@
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;
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 ) {
+ MWindow::remove_plugin_index();
+ File::setenv_path("LV2_PATH", preferences->lv2_path, 1);
+ mwindow->restart_status = -1;
+ }
mwindow->edl->copy_session(edl, 1);
mwindow->preferences->copy_from(preferences);
mwindow->edl->copy_session(edl, 1);
mwindow->preferences->copy_from(preferences);
@@
-634,6
+640,7
@@
PreferencesApply::PreferencesApply(MWindow *mwindow, PreferencesThread *thread)
int PreferencesApply::handle_event()
{
thread->apply_settings();
int PreferencesApply::handle_event()
{
thread->apply_settings();
+ mwindow->save_defaults();
return 1;
}
int PreferencesApply::resize_event(int w, int h)
return 1;
}
int PreferencesApply::resize_event(int w, int h)