You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user