Fixed #15082: line edit emits two "text_changed" signals when pasting while text is selected
I reproduced the issue on LineEdit
element, see the attached project.
Test#15082.zip
TextEdit
element is not affected by this bug.
To fix the bug I deferred the emission of the signal at the end of the frame using MessageQueue
singleton. I added a text_changed_dirty
boolean flag to avoid queueing "text_changed" signal more than once when the paste_text
method is called.