From 44d14cf6af01e4c595584a3fddd173d9e9c063ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20T=2E=20Listwon?= Date: Sat, 2 Dec 2023 13:25:24 +0100 Subject: [PATCH] Defer creating new editor process in "Quit to Project List" just like in "Reload Current Project" --- editor/editor_node.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index b2a65063a767..f83c108508d3 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3189,8 +3189,7 @@ void EditorNode::_discard_changes(const String &p_str) { } args.push_back("--project-manager"); - Error err = OS::get_singleton()->create_instance(args); - ERR_FAIL_COND(err); + OS::get_singleton()->set_restart_on_exit(true, args); } break; case RELOAD_CURRENT_PROJECT: { restart_editor();