Fixed missing scrolling in Search Help Dialog.

Fix #33675
This commit is contained in:
dankan1890 2019-11-25 16:23:35 +01:00
parent 5ddce7a9df
commit 4de9c51f23
2 changed files with 6 additions and 1 deletions

View file

@ -170,7 +170,11 @@ void EditorHelpSearch::popup_dialog(const String &p_term) {
if (p_term == "") {
search_box->clear();
} else {
if (old_term == p_term)
old_search = true;
else
old_term = p_term;
search_box->set_text(p_term);
search_box->select_all();
}

View file

@ -59,6 +59,7 @@ class EditorHelpSearch : public ConfirmationDialog {
OptionButton *filter_combo;
Tree *results_tree;
bool old_search;
String old_term;
class Runner;
Ref<Runner> search;