Update clear button when clicked

This commit is contained in:
Tomasz Chabora 2020-11-25 00:42:07 +01:00
parent 32b31a5fa4
commit 836b78f329

View file

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