Fix LineEdit undo behaves strangely
(cherry picked from commit 7501c7f48a
)
This commit is contained in:
parent
1f54a75310
commit
ea8004052d
1 changed files with 1 additions and 0 deletions
|
@ -1258,6 +1258,7 @@ void LineEdit::set_text(String p_text) {
|
|||
|
||||
clear_internal();
|
||||
append_at_cursor(p_text);
|
||||
_create_undo_state();
|
||||
|
||||
if (expand_to_text_length) {
|
||||
minimum_size_changed();
|
||||
|
|
Loading…
Reference in a new issue