Text: make "Text" tab active when searching
This commit is contained in:
parent
d243a0b03a
commit
831bb6bc77
|
@ -34,6 +34,8 @@
|
|||
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "UI_interface.h"
|
||||
|
||||
#include "text_intern.h"
|
||||
|
||||
/* ************************ header area region *********************** */
|
||||
|
@ -84,6 +86,8 @@ static int text_text_search_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
ED_region_toggle_hidden(C, ar);
|
||||
}
|
||||
|
||||
UI_panel_category_active_set(ar, "Text");
|
||||
|
||||
/* cannot send a button activate yet for case when region wasn't visible yet */
|
||||
/* flag gets checked and cleared in main draw callback */
|
||||
st->flags |= ST_FIND_ACTIVATE;
|
||||
|
|
Loading…
Reference in New Issue