Fix T66628: "Auto Saved Modified Image" not working
Reviewer: brecht
This commit is contained in:
@@ -2949,7 +2949,12 @@ static void wm_block_file_close_save(bContext *C, void *arg_block, void *arg_dat
|
||||
UI_popup_block_close(C, win, arg_block);
|
||||
|
||||
if (save_images_when_file_is_closed) {
|
||||
if (!ED_image_should_save_modified(C)) {
|
||||
if (ED_image_should_save_modified(C)) {
|
||||
ReportList *reports = CTX_wm_reports(C);
|
||||
ED_image_save_all_modified(C, reports);
|
||||
WM_report_banner_show();
|
||||
}
|
||||
else {
|
||||
execute_callback = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user