Caret blink no longer updates when hidden, issue 5100

(cherry picked from commit e260e3872c)
This commit is contained in:
Paulb23 2016-06-08 14:02:39 +01:00 committed by Rémi Verschelde
parent 1475f8d318
commit 93616e41f9
1 changed files with 3 additions and 1 deletions

View File

@ -3201,8 +3201,10 @@ void TextEdit::_reset_caret_blink_timer() {
void TextEdit::_toggle_draw_caret() { void TextEdit::_toggle_draw_caret() {
draw_caret = !draw_caret; draw_caret = !draw_caret;
if (is_visible()) {
update(); update();
} }
}
void TextEdit::_update_caches() { void TextEdit::_update_caches() {