mirror of
https://github.com/godotengine/godot.git
synced 2025-03-07 23:32:58 +08:00
Merge pull request #99665 from bruvzg/rtl_clean
[RTL] Fix clearing text with `set_text("")`.
This commit is contained in:
commit
e78ad1dfca
@ -5963,7 +5963,11 @@ void RichTextLabel::set_text(const String &p_bbcode) {
|
||||
stack_externally_modified = false;
|
||||
|
||||
text = p_bbcode;
|
||||
_apply_translation();
|
||||
if (text.is_empty()) {
|
||||
clear();
|
||||
} else {
|
||||
_apply_translation();
|
||||
}
|
||||
}
|
||||
|
||||
void RichTextLabel::_apply_translation() {
|
||||
|
Loading…
Reference in New Issue
Block a user