summaryrefslogtreecommitdiffstats
path: root/scene/main/window.cpp
diff options
context:
space:
mode:
authorPāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>2024-11-14 14:36:40 +0200
committerPāvels Nadtočajevs <7645683+bruvzg@users.noreply.github.com>2024-11-14 14:48:52 +0200
commit932b2269f80571baaa9d56022c492d8fe5bef992 (patch)
tree5f58636ad49cf22fd5beb352553aae9f260ff455 /scene/main/window.cpp
parent76fa7b291455a8ba24c50005072ebdb58f8a5984 (diff)
downloadredot-engine-932b2269f80571baaa9d56022c492d8fe5bef992.tar.gz
Fix missing native file dialog title translation.
Diffstat (limited to 'scene/main/window.cpp')
-rw-r--r--scene/main/window.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index fc2fe4320b..05904fa8f9 100644
--- a/scene/main/window.cpp
+++ b/scene/main/window.cpp
@@ -303,6 +303,11 @@ String Window::get_title() const {
return title;
}
+String Window::get_translated_title() const {
+ ERR_READ_THREAD_GUARD_V(String());
+ return tr_title;
+}
+
void Window::_settings_changed() {
if (visible && initial_position != WINDOW_INITIAL_POSITION_ABSOLUTE && is_in_edited_scene_root()) {
Size2 screen_size = Size2(GLOBAL_GET("display/window/size/viewport_width"), GLOBAL_GET("display/window/size/viewport_height"));