diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-22 23:30:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-22 23:30:20 +0100 |
commit | 8fb382afb8643d38e14dccd38db119db4d6c6e48 (patch) | |
tree | 50f70dc86e66af324dd00322e747afd444e43867 | |
parent | a7fb5f8558d69e4f2e66afc2e32174e501c67555 (diff) | |
parent | 4f08174413db7ef20d49123e898758bef9561833 (diff) |
Merge pull request #34587 from YeldhamDev/translation_resource_notification_removal
Remove translation change notification when setting the locale of a Translation resource
-rw-r--r-- | core/string/translation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/string/translation.cpp b/core/string/translation.cpp index 9cee218735..ade5f7b4d8 100644 --- a/core/string/translation.cpp +++ b/core/string/translation.cpp @@ -853,7 +853,7 @@ void Translation::set_locale(const String &p_locale) { locale = univ_locale; } - if (OS::get_singleton()->get_main_loop()) { + if (OS::get_singleton()->get_main_loop() && TranslationServer::get_singleton()->get_loaded_locales().has(this)) { OS::get_singleton()->get_main_loop()->notification(MainLoop::NOTIFICATION_TRANSLATION_CHANGED); } } |