Fix missing native file dialog title translation.

This commit is contained in:
Pāvels Nadtočajevs
2024-11-14 14:36:40 +02:00
parent 76fa7b2914
commit 932b2269f8
5 changed files with 10 additions and 4 deletions

View File

@ -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"));