UI: Always open enum-search popups with empty search string
It might be useful to keep the search string stored in some cases, but in most it's not useful but confusing. Especially if the string is taken from a menu showing a different enum.
This commit is contained in:
parent
3f94836922
commit
8ca11f5b72
@ -1118,6 +1118,7 @@ static uiBlock *wm_enum_search_menu(bContext *C, ARegion *ar, void *arg_op)
|
||||
block = UI_block_begin(C, ar, "_popup", UI_EMBOSS);
|
||||
UI_block_flag_enable(block, UI_BLOCK_LOOP | UI_BLOCK_MOVEMOUSE_QUIT | UI_BLOCK_SEARCH_MENU);
|
||||
|
||||
search[0] = '\0';
|
||||
#if 0 /* ok, this isn't so easy... */
|
||||
uiDefBut(block, UI_BTYPE_LABEL, 0, RNA_struct_ui_name(op->type->srna), 10, 10, UI_searchbox_size_x(), UI_UNIT_Y, NULL, 0.0, 0.0, 0, 0, "");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user