[Bf-blender-cvs] [e9dc6a0e098] master: UI: Show a notification when saving preferences
Pablo Vazquez
noreply at git.blender.org
Sat Jul 31 03:17:55 CEST 2021
Commit: e9dc6a0e09828453bb41a1990738d3a4deb1b130
Author: Pablo Vazquez
Date: Sat Jul 31 03:15:10 2021 +0200
Branches: master
https://developer.blender.org/rBe9dc6a0e09828453bb41a1990738d3a4deb1b130
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.
===================================================================
M source/blender/blenkernel/intern/blendfile.c
===================================================================
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 {
More information about the Bf-blender-cvs
mailing list