File->"Load Factory Settings (Temporary)" not offered if Prefs Auto-Save is off. #65164

Closed
opened 2019-05-26 21:29:07 +02:00 by Gavin Scott · 6 comments

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.17

Blender Version
Broken: version: 2.80 (sub 72), branch: master (modified), commit date: 2019-05-25 01:24, hash: 8e812504b4

Currently, the File->Defaults menu only offers the "Load Factory Settings (Temporary)" option if it sees that you have Auto Save Preferences turned on, because if you have it turned off then there's no worry that an inadvertent autosave will happen resulting in a config-stomp.

But this logic is flawed because the act of loading the Factory Settings always turns ON the Auto Save Preferences option, so if the user uses the only provided option "Load Factory Settings" when they have autosave off and then changes any setting in Blender, then they will get an unexpected config save on exit, wiping out all pre-existing settings.

Either the (Temporary) option needs to always be offered, or (preferably IMHO) we should just always explicitly turn off the Auto Save Preferences option after loading the factory defaults, thus requiring the user to take the explicit action of turning it on if that's their intention. The worst case then is it takes them a little extra time to figure out how to overwrite their old settings, rather than accidentally overwriting their preferences too easily. This also eliminates the need to have two slightly different options for the Defaults menu which is confusing and if the user picks the wrong option then they're again in trouble and it eliminates the need to use the hidden G_FLAG_USERPREF_NO_SAVE_ON_EXIT in this case, making all the behavior visible to the user rather than having something magic going on behind the user's back.

**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 419.17 **Blender Version** Broken: version: 2.80 (sub 72), branch: master (modified), commit date: 2019-05-25 01:24, hash: `8e812504b4` Currently, the File->Defaults menu only offers the "Load Factory Settings (Temporary)" option if it sees that you have Auto Save Preferences turned on, because if you have it turned off then there's no worry that an inadvertent autosave will happen resulting in a config-stomp. But this logic is flawed because the act of loading the Factory Settings always turns ON the Auto Save Preferences option, so if the user uses the only provided option "Load Factory Settings" when they have autosave off and then changes any setting in Blender, then they will get an unexpected config save on exit, wiping out all pre-existing settings. Either the (Temporary) option needs to always be offered, or (preferably IMHO) we should just always explicitly turn off the Auto Save Preferences option after loading the factory defaults, thus requiring the user to take the explicit action of turning it on if that's their intention. The worst case then is it takes them a little extra time to figure out how to overwrite their old settings, rather than accidentally overwriting their preferences too easily. This also eliminates the need to have two slightly different options for the Defaults menu which is confusing and if the user picks the wrong option then they're again in trouble and it eliminates the need to use the hidden G_FLAG_USERPREF_NO_SAVE_ON_EXIT in this case, making all the behavior visible to the user rather than having something magic going on behind the user's back.
Author

Added subscriber: @GavinScott

Added subscriber: @GavinScott
Member

Added subscribers: @brecht, @ideasman42, @JacquesLucke

Added subscribers: @brecht, @ideasman42, @JacquesLucke
Member

@brecht this problem was brought up by artists last week, was there any conclusion about how to solve it?

@brecht this problem was brought up by artists last week, was there any conclusion about how to solve it?
Campbell Barton was assigned by Brecht Van Lommel 2019-05-27 11:55:54 +02:00

I don't remember discussing this specific issue.

I think we could add the Temporary entry, or preserve G_FLAG_USERPREF_NO_SAVE_ON_EXIT through Load Factory Settings.

I don't remember discussing this specific issue. I think we could add the Temporary entry, or preserve `G_FLAG_USERPREF_NO_SAVE_ON_EXIT` through Load Factory Settings.

Closed as duplicate of #65702

Closed as duplicate of #65702

The issue with enabling G_FLAG_USERPREF_NO_SAVE_ON_EXIT is the user might go on to make changes to the preferences and not realize they wont be auto-saved.

This is true for --factory-startup too, but I think this is more obviously an exceptional case.


This could be resolved by exposing this state to the user (which is probably better in any-case).

So factory settings never auto save unless the user disables the "temporary" state from the preferences window.

Then we could...

  • Remove "Load Factory Settings (Temporary)".
  • Factory settings wouldn't have to ignore the prefs flag (which isn't correct).

Committed fcb534e336

The issue with enabling `G_FLAG_USERPREF_NO_SAVE_ON_EXIT` is the user might go on to make changes to the preferences and not realize they wont be auto-saved. This is true for `--factory-startup` too, but I think this is more obviously an exceptional case. ---- This could be resolved by exposing this state to the user (which is probably better in any-case). So factory settings never auto save unless the user disables the "temporary" state from the preferences window. Then we could... - Remove "Load Factory Settings (Temporary)". - Factory settings wouldn't have to ignore the prefs flag (which isn't *correct*). ---- Committed fcb534e336
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#65164
No description provided.