diff options
author | Pablo Vazquez <pablo@blender.org> | 2021-07-31 04:15:10 +0300 |
---|---|---|
committer | Pablo Vazquez <pablo@blender.org> | 2021-07-31 04:15:10 +0300 |
commit | e9dc6a0e09828453bb41a1990738d3a4deb1b130 (patch) | |
tree | 4fbe99d0627032c25715e05294e6961141745a90 | |
parent | 35894dc700e035da914fb8457ef62706c5835391 (diff) |
UI: Show a notification when saving preferences
So far the only way to know if they were saved properly was
to check the terminal.
Also notify when preferences fail to save.
-rw-r--r-- | source/blender/blenkernel/intern/blendfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/blendfile.c b/source/blender/blenkernel/intern/blendfile.c index 19721b4313d..61827be08e5 100644 --- a/source/blender/blenkernel/intern/blendfile.c +++ b/source/blender/blenkernel/intern/blendfile.c @@ -736,10 +736,12 @@ bool BKE_blendfile_userdef_write_all(ReportList *reports) if (ok_write) { printf("ok\n"); + BKE_report(reports, RPT_INFO, "Preferences saved"); } else { printf("fail\n"); ok = false; + BKE_report(reports, RPT_ERROR, "Saving preferences failed"); } } else { |