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.
This commit is contained in:
parent
35894dc700
commit
e9dc6a0e09
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue