You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-04 19:21:46 +00:00
Merge pull request #100275 from KoBeWi/highest_level_clearance
Don't emit `text_changed` signal when clearing empty LineEdit
This commit is contained in:
@@ -1859,8 +1859,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