diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-13 08:59:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-13 09:29:35 +0300 |
commit | 741f29d499eaaa5c10be218a632f9b6fab67840e (patch) | |
tree | af5ff8dfab8c97b599a1c8af17e4fdbd9fd6480a /source/blender/windowmanager/intern/wm_init_exit.c | |
parent | 3d923f3eaf998ebd73f6c93eb87a05288b579e22 (diff) |
Preferences: auto-save on exit
Save modified preferences on exit by default,
with the option to disable this.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 0112faf6b2c..9abfa657536 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -475,12 +475,11 @@ void WM_exit_ext(bContext *C, const bool do_python) ED_screen_exit(C, win, WM_window_get_active_screen(win)); } - /* Disable until we have a revert button. */ -#if 0 if (U.runtime.is_dirty) { - BKE_blendfile_userdef_write_all(NULL); + if (U.pref_flag & USER_PREF_FLAG_SAVE) { + BKE_blendfile_userdef_write_all(NULL); + } } -#endif } BLI_timer_free(); |