UI: Don't refresh searchbox region blocks on text input

Refreshing refers to the recreation of the block and it's buttons in
this case.

Refreshing popup regions on text input was added in 7d80fde033. It can
be useful to update the popup contents on text input, searchboxes have
their completely own update handling however.
This commit is contained in:
Julian Eisel 2024-05-27 21:25:28 +02:00
parent 98c92b9033
commit 71b0e9d92a

@ -4049,8 +4049,11 @@ static void ui_do_but_textedit(
if (changed || (retval == WM_UI_HANDLER_BREAK)) {
ED_region_tag_redraw(data->region);
/* In case of popup regions, tag for popup refreshing too (contents may have changed). */
ED_region_tag_refresh_ui(data->region);
if (!data->searchbox) {
/* In case of popup regions, tag for popup refreshing too (contents may have changed). Not
* done for searchboxes, since they have their own update handling. */
ED_region_tag_refresh_ui(data->region);
}
}
}