1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Don't emit text_changed signal when clearing empty LineEdit

This commit is contained in:
kobewi
2024-12-11 14:16:36 +01:00
parent a40fc2354a
commit b8b1584f5a

View File

@@ -1853,8 +1853,12 @@ Array LineEdit::get_structured_text_bidi_override_options() const {
}
void LineEdit::clear() {
bool was_empty = text.is_empty();
clear_internal();
_text_changed();
_clear_redo();
if (!was_empty) {
_emit_text_change();
}
// This should reset virtual keyboard state if needed.
if (editing) {