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:
authorJulian Eisel <julian@blender.org>2021-04-21 16:04:44 +0300
committerJulian Eisel <julian@blender.org>2021-04-21 16:18:05 +0300
commite9e280557302c461bee220be1871692c8094bcd6 (patch)
tree4ab5bbbcf98aecdb0040fcd561dbf143e051edaa /source/blender/windowmanager/wm_files.h
parent0b458e832218d0c9309ffef9ac90c1539970e55b (diff)
Cleanup: Deduplicate file closing dialog logic
Was doing almost the same thing in two places, plus I need the same for a third case. So better have a helper function for it.
Diffstat (limited to 'source/blender/windowmanager/wm_files.h')
-rw-r--r--source/blender/windowmanager/wm_files.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h
index d54090a6025..533084e96e8 100644
--- a/source/blender/windowmanager/wm_files.h
+++ b/source/blender/windowmanager/wm_files.h
@@ -45,6 +45,7 @@ void wm_homefile_read(struct bContext *C,
void wm_file_read_report(bContext *C, struct Main *bmain);
void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action);
+bool wm_operator_close_file_dialog_if_needed(bContext *C, wmOperator *op, wmGenericCallbackFn exec_fn);
bool wm_file_or_image_is_modified(const Main *bmain, const wmWindowManager *wm);
void WM_OT_save_homefile(struct wmOperatorType *ot);