mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
Merge pull request #7053 from Paulb23/caret_blink_redraw_issue_6167
Caret blink will no longer cause redraw without focus, issue 6167
This commit is contained in:
commit
cdc4664226
@ -853,7 +853,7 @@ void LineEdit::_reset_caret_blink_timer() {
|
||||
|
||||
void LineEdit::_toggle_draw_caret() {
|
||||
draw_caret = !draw_caret;
|
||||
if (is_visible()) {
|
||||
if (is_visible() && has_focus() && window_has_focus) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
@ -3458,7 +3458,7 @@ void TextEdit::_reset_caret_blink_timer() {
|
||||
|
||||
void TextEdit::_toggle_draw_caret() {
|
||||
draw_caret = !draw_caret;
|
||||
if (is_visible()) {
|
||||
if (is_visible() && has_focus() && window_has_focus) {
|
||||
update();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user