Merge pull request #67393 from KoBeWi/🥕
Preserve caret when updating EditorPropertyText
This commit is contained in:
commit
03adb08b10
@ -90,7 +90,9 @@ void EditorPropertyText::update_property() {
|
||||
String s = get_edited_object()->get(get_edited_property());
|
||||
updating = true;
|
||||
if (text->get_text() != s) {
|
||||
int caret = text->get_caret_column();
|
||||
text->set_text(s);
|
||||
text->set_caret_column(caret);
|
||||
}
|
||||
text->set_editable(!is_read_only());
|
||||
updating = false;
|
||||
|
Loading…
Reference in New Issue
Block a user