mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Localize unnamed project name in editor window title
This commit is contained in:
parent
83d2673772
commit
35d0878139
@ -416,7 +416,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.is_empty() ? "Unnamed Project" : appname) + String(" - ") + VERSION_NAME;
|
||||
String title = (appname.is_empty() ? TTR("Unnamed Project") : appname) + String(" - ") + VERSION_NAME;
|
||||
const String edited = editor_data.get_edited_scene_root() ? editor_data.get_edited_scene_root()->get_scene_file_path() : String();
|
||||
if (!edited.is_empty()) {
|
||||
// Display the edited scene name before the program name so that it can be seen in the OS task bar.
|
||||
|
Loading…
Reference in New Issue
Block a user