UI: remove layout choosing menu from new window operator.

The handling of multiple window layouts within a workspace is intended to
be automatic now, this was a leftover from an earlier design.
This commit is contained in:
2018-06-27 12:29:22 +02:00
parent fad585d6f4
commit c3594f6469
3 changed files with 5 additions and 128 deletions

View File

@@ -2304,20 +2304,12 @@ static void WM_OT_window_close(wmOperatorType *ot)
static void WM_OT_window_new(wmOperatorType *ot)
{
PropertyRNA *prop;
ot->name = "New Window";
ot->idname = "WM_OT_window_new";
ot->description = "Create a new Blender window";
ot->exec = wm_window_new_exec;
ot->invoke = wm_window_new_invoke;
ot->poll = wm_operator_winactive_normal;
prop = RNA_def_enum(ot->srna, "screen", DummyRNA_NULL_items, 0, "Screen", "");
RNA_def_enum_funcs(prop, wm_window_new_screen_itemf);
RNA_def_property_flag(prop, PROP_ENUM_NO_TRANSLATE);
ot->prop = prop;
}
static void WM_OT_window_fullscreen_toggle(wmOperatorType *ot)