UI: show an error when a search fails

Useful in cases when making a typo before pressing enter.
This commit is contained in:
Campbell Barton 2020-05-13 17:03:46 +10:00
parent e8e003ee8b
commit adcc81341d
1 changed files with 3 additions and 0 deletions

View File

@ -3357,6 +3357,9 @@ static void ui_textedit_end(bContext *C, uiBut *but, uiHandleButtonData *data)
/* ensure menu (popup) too is closed! */
data->escapecancel = true;
WM_reportf(RPT_ERROR, "Failed to find '%s'", but->editstr);
WM_report_banner_show();
}
}