mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Merge pull request #97187 from KoBeWi/do_not
Don't store project metadata when loading
This commit is contained in:
		
						commit
						0a4aedb360
					
				
					 3 changed files with 13 additions and 6 deletions
				
			
		|  | @ -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; | ||||
| } | ||||
|  | @ -7908,9 +7910,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"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde