Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-10 11:29:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-10 11:29:58 +0300
commit688e3fed4c255ddcfe98f08d1004dc2c0abd51ef (patch)
treef2a39c341884c343d792b9eeba526cdd28c2f244 /source/blender/windowmanager/intern/wm_init_exit.c
parentb95b6b796695a8b82cda9898561de9e89021596f (diff)
Preferences: write preferences on exit
This avoids the issue where user added shortcuts or quick favourites are lost on exit.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 97ba9190351..d486daf8039 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -52,6 +52,7 @@
#include "BLO_writefile.h"
#include "BLO_undofile.h"
+#include "BKE_blendfile.h"
#include "BKE_blender.h"
#include "BKE_blender_undo.h"
#include "BKE_context.h"
@@ -469,6 +470,10 @@ void WM_exit_ext(bContext *C, const bool do_python)
WM_event_remove_handlers(C, &win->modalhandlers);
ED_screen_exit(C, win, WM_window_get_active_screen(win));
}
+
+ if (U.runtime.is_dirty) {
+ BKE_blendfile_userdef_write_all(NULL);
+ }
}
BLI_timer_free();