UI: support searching in menus #110855

Merged
Jacques Lucke merged 38 commits from JacquesLucke/blender:single-menu-search into main 2023-09-06 18:16:52 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 73359374a6 - Show all commits

View File

@ -1779,13 +1779,13 @@ static uiBlock *wm_block_search_menu(bContext *C, ARegion *region, void *userdat
}
else if (init_data->search_type == SEARCH_TYPE_SINGLE_MENU) {
UI_but_func_menu_search(but, init_data->single_menu_idname.c_str());
UI_but_flag2_enable(but, UIButFlag2::ACTIVATE_ON_INIT_SKIP_SELECT);
}
else {
BLI_assert_unreachable();
}
UI_but_flag_enable(but, UI_BUT_ACTIVATE_ON_INIT);
UI_but_flag2_enable(but, UIButFlag2::ACTIVATE_ON_INIT_SKIP_SELECT);
/* fake button, it holds space for search items */
uiDefBut(block,