Don't store project metadata when loading
This commit is contained in:
parent
694d3c2930
commit
b277a2985d
|
@ -588,7 +588,7 @@ ActionMapEditor::ActionMapEditor() {
|
||||||
add_hbox->add_child(show_builtin_actions_checkbutton);
|
add_hbox->add_child(show_builtin_actions_checkbutton);
|
||||||
|
|
||||||
show_builtin_actions = EditorSettings::get_singleton()->get_project_metadata("project_settings", "show_builtin_actions", false);
|
show_builtin_actions = EditorSettings::get_singleton()->get_project_metadata("project_settings", "show_builtin_actions", false);
|
||||||
show_builtin_actions_checkbutton->set_pressed(show_builtin_actions);
|
show_builtin_actions_checkbutton->set_pressed_no_signal(show_builtin_actions);
|
||||||
|
|
||||||
main_vbox->add_child(add_hbox);
|
main_vbox->add_child(add_hbox);
|
||||||
|
|
||||||
|
|
|
@ -4113,7 +4113,9 @@ Error EditorNode::load_scene(const String &p_scene, bool p_ignore_broken_deps, b
|
||||||
|
|
||||||
_update_title();
|
_update_title();
|
||||||
scene_tabs->update_scene_tabs();
|
scene_tabs->update_scene_tabs();
|
||||||
_add_to_recent_scenes(lpath);
|
if (!restoring_scenes) {
|
||||||
|
_add_to_recent_scenes(lpath);
|
||||||
|
}
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
@ -7906,9 +7908,14 @@ EditorNode::EditorNode() {
|
||||||
title_bar->set_can_move_window(true);
|
title_bar->set_can_move_window(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
String exec = OS::get_singleton()->get_executable_path();
|
{
|
||||||
// Save editor executable path for third-party tools.
|
const String exec = OS::get_singleton()->get_executable_path();
|
||||||
EditorSettings::get_singleton()->set_project_metadata("editor_metadata", "executable_path", exec);
|
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");
|
follow_system_theme = EDITOR_GET("interface/theme/follow_system_theme");
|
||||||
use_system_accent_color = EDITOR_GET("interface/theme/use_system_accent_color");
|
use_system_accent_color = EDITOR_GET("interface/theme/use_system_accent_color");
|
||||||
|
|
|
@ -771,7 +771,7 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) {
|
||||||
bool use_advanced = EditorSettings::get_singleton()->get_project_metadata("project_settings", "advanced_mode", false);
|
bool use_advanced = EditorSettings::get_singleton()->get_project_metadata("project_settings", "advanced_mode", false);
|
||||||
|
|
||||||
if (use_advanced) {
|
if (use_advanced) {
|
||||||
advanced->set_pressed(true);
|
advanced->set_pressed_no_signal(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
_update_advanced(use_advanced);
|
_update_advanced(use_advanced);
|
||||||
|
|
Loading…
Reference in New Issue