Merge pull request #102585 from KoBeWi/localichangetion

Don't send `TRANSLATION_CHANGED` outside tree
This commit is contained in:
Thaddeus Crews 2025-03-05 12:07:50 -06:00
commit e23460ae78
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -1378,7 +1378,10 @@ void Node::_propagate_translation_domain_dirty() {
child->_propagate_translation_domain_dirty();
}
}
notification(NOTIFICATION_TRANSLATION_CHANGED);
if (is_inside_tree() && data.auto_translate_mode != AUTO_TRANSLATE_MODE_DISABLED) {
notification(NOTIFICATION_TRANSLATION_CHANGED);
}
}
StringName Node::get_name() const {