summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-25 08:21:49 +0100
committerGitHub <noreply@github.com>2020-11-25 08:21:49 +0100
commit113ea1de2a9d642a07616090b88a1973e727f4cb (patch)
tree6554efc135486808a40abec8d716e1015a9af1f4
parent32b31a5fa47b1e068be98f3196cf5d83a2260667 (diff)
parent836b78f32936f1507a31c1f8c7d14c2039deaace (diff)
Merge pull request #43837 from KoBeWi/butt_on
Update clear button when clicked
-rw-r--r--scene/gui/line_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 649f5a5f66..857c96bea3 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -70,6 +70,7 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) {
if (!text.empty() && is_editable() && _is_over_clear_button(b->get_position())) {
clear_button_status.press_attempt = true;
clear_button_status.pressing_inside = true;
+ update();
return;
}