diff options
author | kobewi <kobewi4e@gmail.com> | 2024-09-19 15:57:02 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-09-19 16:01:53 +0200 |
commit | b277a2985d81efd4e15d8606ddd6ee12db0b2ed1 (patch) | |
tree | b689d21a33095cd835f0b6417355bbf8cc4d76ff /editor/editor_node.cpp | |
parent | 694d3c2930bdfb43fd93e1e6641f66c4f19a5c77 (diff) | |
download | redot-engine-b277a2985d81efd4e15d8606ddd6ee12db0b2ed1.tar.gz |
Don't store project metadata when loading
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r-- | editor/editor_node.cpp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 0c21f3c2cd..2c474c3c70 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -4113,7 +4113,9 @@ Error EditorNode::load_scene(const String &p_scene, bool p_ignore_broken_deps, b _update_title(); scene_tabs->update_scene_tabs(); - _add_to_recent_scenes(lpath); + if (!restoring_scenes) { + _add_to_recent_scenes(lpath); + } return OK; } @@ -7906,9 +7908,14 @@ EditorNode::EditorNode() { title_bar->set_can_move_window(true); } - String exec = OS::get_singleton()->get_executable_path(); - // Save editor executable path for third-party tools. - EditorSettings::get_singleton()->set_project_metadata("editor_metadata", "executable_path", exec); + { + const String exec = OS::get_singleton()->get_executable_path(); + const String old_exec = EditorSettings::get_singleton()->get_project_metadata("editor_metadata", "executable_path", ""); + // Save editor executable path for third-party tools. + if (exec != old_exec) { + EditorSettings::get_singleton()->set_project_metadata("editor_metadata", "executable_path", exec); + } + } follow_system_theme = EDITOR_GET("interface/theme/follow_system_theme"); use_system_accent_color = EDITOR_GET("interface/theme/use_system_accent_color"); |