summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-06-20 23:19:14 +0200
committerGitHub <noreply@github.com>2022-06-20 23:19:14 +0200
commit0aa85f4ff82ad9557380855ea1f8847a3c3d0dfa (patch)
tree95c6ab6dbc2f482cd87b890b2e057001d9cd0da4 /editor
parentc5ea07ce861e853653ef7172c5341ccdf77f14e3 (diff)
parent9f2d1b5cf02e1140bb94b477ddbf40a7ba62a4a6 (diff)
Merge pull request #62252 from Maran23/project-window-title-rename-fix
Update project window title when a project setting was changed
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 4143619338..15770f9ac8 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -553,6 +553,8 @@ void EditorNode::_update_from_settings() {
tree->set_debug_collision_contact_color(GLOBAL_GET("debug/shapes/collision/contact_color"));
tree->set_debug_navigation_color(GLOBAL_GET("debug/shapes/navigation/geometry_color"));
tree->set_debug_navigation_disabled_color(GLOBAL_GET("debug/shapes/navigation/disabled_geometry_color"));
+
+ _update_title();
}
void EditorNode::_select_default_main_screen_plugin() {
@@ -582,10 +584,7 @@ void EditorNode::_notification(int p_what) {
opening_prev = false;
}
- if (unsaved_cache != (saved_version != editor_data.get_undo_redo().get_version())) {
- unsaved_cache = (saved_version != editor_data.get_undo_redo().get_version());
- _update_title();
- }
+ unsaved_cache = saved_version != editor_data.get_undo_redo().get_version();
if (last_checked_version != editor_data.get_undo_redo().get_version()) {
_update_scene_tabs();