diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-23 15:47:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 15:47:50 +0200 |
commit | c32285733d4f235249c1031ee64d19b751e4d7df (patch) | |
tree | 58df5bedeee855ceb9b8e46de11b3270e54d9ae2 /editor | |
parent | b39b871a34c194e5861fd8117ad3bbec25baaf2f (diff) | |
parent | 3b20b9d32aef4950fb0b8ed7e04567417dafd63b (diff) |
Merge pull request #62323 from Maran23/window-title-changed-data-fix
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index bcfc516849..93caf7944c 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -553,8 +553,6 @@ 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() { @@ -584,7 +582,11 @@ void EditorNode::_notification(int p_what) { opening_prev = false; } - unsaved_cache = saved_version != editor_data.get_undo_redo().get_version(); + bool unsaved_cache_changed = false; + if (unsaved_cache != (saved_version != editor_data.get_undo_redo().get_version())) { + unsaved_cache = (saved_version != editor_data.get_undo_redo().get_version()); + unsaved_cache_changed = true; + } if (last_checked_version != editor_data.get_undo_redo().get_version()) { _update_scene_tabs(); @@ -614,6 +616,10 @@ void EditorNode::_notification(int p_what) { ResourceImporterTexture::get_singleton()->update_imports(); + if (settings_changed || unsaved_cache_changed) { + _update_title(); + } + if (settings_changed) { _update_from_settings(); settings_changed = false; |