Text: make "Text" tab active when searching

This commit is contained in:
Yevgeny Makarov 2020-02-03 17:55:13 +11:00 committed by Campbell Barton
parent d243a0b03a
commit 831bb6bc77
1 changed files with 4 additions and 0 deletions

View File

@ -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;