Blender Git Loki

Git Commits -> Revision ddb1579

Revision ddb1579 by Julian Eisel (master)
September 30, 2019, 17:27 (GMT)
UI: Remember File Browser Display Options in Preferences

This makes it so that some display related properties of the file
browser state are remembered in the Preferences. Otherwise, users often
end up doing the same set up work over and over again, so this is a
nice way to save users some work.
It's typical for other file browsers to remember their state too, so
another benefit is having a more conventional behavior, meeting user
expectations better.

Some points:
* We currently store: Window size, display type, thumbnail size,
enabled details-columns, sort options, "Show Hidden" option. More can
be added easily.
* No changes are stored to the Preferences if "Auto-save Preferences"
is disabled. This is how Quick Favorites behave too and it's a
reasonable way to make this behavior optional.
* The Preferences are only saved to permanent memory upon closing
Blender, following existing convention of Preferences and Quick
Favorites.
* If settings weren't actually changed, Preference saving is skipped.
* Only temporary file browsers save their state (invoked through
actions like open or save), not regular file browser editors. These
are usually used for different purposes and workflows.
* Removes "Show Thumbnails" Preferences option. It would need some
special handling, possibly introducing bugs. For users, this
simplifies behavior and should make things more predictable.
Left in DNA data in case we decide to bring it back.

Reviewers: brecht, #user_interface, billreynish, campbellbarton

Reviewed By: #user_interface, William Reynish, Campbell Barton, Brecht
van Lommel (quick first pass review in person)

Maniphest Tasks: T69460

Differential Revision: https://developer.blender.org/D5893

Commit Details:

Full Hash: ddb157999eed6907e3fd8753d61e65491f2f3a6d
Parent Commit: 5940f6b
Lines Changed: +135, -38

10 Modified Paths:

/release/datafiles/userdef/userdef_default.c (+13, -0) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+0, -1) (Diff)
/source/blender/blenloader/intern/versioning_userdef.c (+5, -0) (Diff)
/source/blender/editors/include/ED_fileselect.h (+2, -0) (Diff)
/source/blender/editors/space_file/filesel.c (+75, -22) (Diff)
/source/blender/makesdna/DNA_space_types.h (+1, -2) (Diff)
/source/blender/makesdna/DNA_userdef_types.h (+24, -1) (Diff)
/source/blender/makesdna/intern/dna_defaults.c (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_userdef.c (+0, -5) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+14, -7) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021