Caret blink no longer updates when hidden, issue 5100
(cherry picked from commit e260e3872c
)
This commit is contained in:
parent
1475f8d318
commit
93616e41f9
|
@ -3201,7 +3201,9 @@ void TextEdit::_reset_caret_blink_timer() {
|
|||
|
||||
void TextEdit::_toggle_draw_caret() {
|
||||
draw_caret = !draw_caret;
|
||||
update();
|
||||
if (is_visible()) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
||||
void TextEdit::_update_caches() {
|
||||
|
|
Loading…
Reference in New Issue