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-08-11 10:51:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-08-11 10:51:09 +0300
commit18ba66d75ee669bbb433c46ffc0d2516ff423b43 (patch)
tree9dc8ecaab90d53db6acae0ce8facde9bd8e8d9ad /source/blender/makesrna
parent22cdadaa32c74d964b1fe4e0dc517eb33ada7bd2 (diff)
UI: clarify auto-save preference
- Grey out the option when factory settings have been loaded. - Note it it's tool-top that it's ignored when factory settings have been loaded. Suggestions by @JulienKaspar
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 48eee713fc9..a449ed850e9 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -5820,7 +5820,10 @@ void RNA_def_userdef(BlenderRNA *brna)
/* Preferences Flags */
prop = RNA_def_property(srna, "use_preferences_save", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "pref_flag", USER_PREF_FLAG_SAVE);
- RNA_def_property_ui_text(prop, "Save on Exit", "Save preferences on exit when modified");
+ RNA_def_property_ui_text(prop,
+ "Save on Exit",
+ "Save preferences on exit when modified "
+ "(unless factory settings have been loaded)");
prop = RNA_def_property(srna, "is_dirty", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "runtime.is_dirty", 0);