diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-12 05:21:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-12 05:30:49 +0300 |
commit | fcb534e336c3b9d9065c5bbc9143bcc305497975 (patch) | |
tree | 45dcf47f367fc31e4c6896ef4f27fcf95bc5ad50 /release/scripts/startup/bl_ui/space_topbar.py | |
parent | 2459a1a214b950cc8baa4e8fcb48e7dfada58b77 (diff) |
UI: alternate fix for T65702, handling of auto-saving userprefs
The behavior for loading factory settings wasn't clear for users.
This commit changes the behavior:
- Loading factory settings always disables auto-save
for the current session.
- The internal setting to skip saving on exit is now exposed
in the preferences (when enabled).
- The menu item "Load Factory Settings (Temporary)" has been removed
since it's always temporary.
This way users can always reset factory settings without
having to consider the combination of options that might cause their
preferences to be overwritten at exit.
If they want to enable auto-save for the current session
this can be done from the preferences.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index d99df2eced7..35c4a5ec5a1 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -334,15 +334,6 @@ class TOPBAR_MT_file_defaults(Menu): if app_template: props.app_template = app_template - if prefs.use_preferences_save: - props = layout.operator( - "wm.read_factory_settings", - text="Load Factory Settings (Temporary)" - ) - if app_template: - props.app_template = app_template - props.use_temporary_preferences = True - class TOPBAR_MT_app_about(Menu): bl_label = "About" |