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
path: root/source
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-04-24 12:54:40 +0300
committerJacques Lucke <mail@jlucke.com>2019-04-24 12:59:22 +0300
commitcfe9c7b3bd533379b6a52380fd62d7cdfaefd183 (patch)
tree041849d5297d2721cf00e5accf30bab6fead8911 /source
parent8955ec6776db74b3e09f4ad8fb5cd3fd94f1caab (diff)
Refactor: Separate template selection from read_homefile operator
This is a first step towards T61599. This way the invoke function can be used for the confirm dialog in a separate patch. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D4723
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index f9e420a987f..c3642e7f7e7 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -1846,24 +1846,6 @@ static int wm_homefile_read_exec(bContext *C, wmOperator *op)
return OPERATOR_FINISHED;
}
-static int wm_homefile_read_invoke(bContext *C,
- wmOperator *UNUSED(op),
- const wmEvent *UNUSED(event))
-{
- /* Draw menu which includes default startup and application templates. */
- uiPopupMenu *pup = UI_popup_menu_begin(C, IFACE_("New File"), ICON_FILE_NEW);
- uiLayout *layout = UI_popup_menu_layout(pup);
-
- MenuType *mt = WM_menutype_find("TOPBAR_MT_file_new", false);
- if (mt) {
- UI_menutype_draw(C, mt, layout);
- }
-
- UI_popup_menu_end(C, pup);
-
- return OPERATOR_INTERFACE;
-}
-
void WM_OT_read_homefile(wmOperatorType *ot)
{
PropertyRNA *prop;
@@ -1871,7 +1853,6 @@ void WM_OT_read_homefile(wmOperatorType *ot)
ot->idname = "WM_OT_read_homefile";
ot->description = "Open the default file (doesn't save the current file)";
- ot->invoke = wm_homefile_read_invoke;
ot->exec = wm_homefile_read_exec;
prop = RNA_def_string_file_path(