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-02-08 00:36:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-08 00:42:50 +0300
commit7fdda18ca1317d9c911ce279a7c261eff9c75709 (patch)
treed9a48c7cab189603e0649dd6b752cde046f8a9ce /source/blender/windowmanager
parent0abf754748cbab97749acb581aceca4ba9315ac5 (diff)
Remove "Keep Session" preference
As far as we know this wasn't widely used, and relied no storing data in the temp dir which may be cleared on reboot. More generally, alternative behavior for a core area like file IO is not something to keep if it has unresolved issues. See D4310 for details.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index 83d3e8a75e3..2115a7d661a 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -312,12 +312,7 @@ void WM_init(bContext *C, int argc, const char **argv)
}
#endif
- /* load last session, uses regular file reading so it has to be in end (after init py etc) */
- if (U.uiflag2 & USER_KEEP_SESSION) {
- /* calling WM_recover_last_session(C, NULL) has been moved to creator.c */
- /* that prevents loading both the kept session, and the file on the command line */
- }
- else {
+ {
Main *bmain = CTX_data_main(C);
/* note, logic here is from wm_file_read_post,
* call functions that depend on Python being initialized. */
@@ -430,7 +425,7 @@ void WM_exit_ext(bContext *C, const bool do_python)
if (!G.background) {
struct MemFile *undo_memfile = wm->undo_stack ? ED_undosys_stack_memfile_get_active(wm->undo_stack) : NULL;
- if ((U.uiflag2 & USER_KEEP_SESSION) || (undo_memfile != NULL)) {
+ if (undo_memfile != NULL) {
/* save the undo state as quit.blend */
Main *bmain = CTX_data_main(C);
char filename[FILE_MAX];