mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Localize unnamed project name in editor window title
(cherry picked from commit 35d0878139)
This commit is contained in:
committed by
Rémi Verschelde
parent
24d40ebed9
commit
8d9071542b
@@ -363,7 +363,7 @@ void EditorNode::_version_control_menu_option(int p_idx) {
|
||||
|
||||
void EditorNode::_update_title() {
|
||||
const String appname = ProjectSettings::get_singleton()->get("application/config/name");
|
||||
String title = (appname.empty() ? "Unnamed Project" : appname) + String(" - ") + VERSION_NAME;
|
||||
String title = (appname.empty() ? TTR("Unnamed Project") : appname) + String(" - ") + VERSION_NAME;
|
||||
const String edited = editor_data.get_edited_scene_root() ? editor_data.get_edited_scene_root()->get_filename() : String();
|
||||
if (!edited.empty()) {
|
||||
// Display the edited scene name before the program name so that it can be seen in the OS task bar.
|
||||
|
||||
Reference in New Issue
Block a user