You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix LineEdit's caret desyncing issue when toggling secret mode
This commit is contained in:
@@ -2444,6 +2444,7 @@ void LineEdit::set_secret(bool p_secret) {
|
||||
|
||||
pass = p_secret;
|
||||
_shape();
|
||||
set_caret_column(caret_column); // Update scroll_offset.
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
@@ -2462,6 +2463,7 @@ void LineEdit::set_secret_character(const String &p_string) {
|
||||
}
|
||||
secret_character = c;
|
||||
_shape();
|
||||
set_caret_column(caret_column); // Update scroll_offset.
|
||||
queue_redraw();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user