diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index cb647ffc35d6..8b6d316dd16f 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3407,8 +3407,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();