소스 검색

Update clear button when clicked

Tomasz Chabora 4 년 전
부모
커밋
836b78f329
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/gui/line_edit.cpp

+ 1 - 0
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;
 			}