Fix menu search using exec instead of invoke by default

Caused edit preferences not to open.
This commit is contained in:
Campbell Barton 2020-04-15 13:36:04 +10:00
parent 92113e2da7
commit 1bb241437c
1 changed files with 1 additions and 1 deletions

View File

@ -7009,7 +7009,7 @@ static struct MenuSearch_Data *menu_items_from_ui_create(bContext *C,
UI_block_flag_enable(block, UI_BLOCK_SHOW_SHORTCUT_ALWAYS);
uiLayoutSetOperatorContext(layout, WM_OP_EXEC_REGION_WIN);
uiLayoutSetOperatorContext(layout, WM_OP_INVOKE_REGION_WIN);
UI_menutype_draw(C, mt, layout);
UI_block_end(C, block);