Skip to content

Commit

Permalink
Merge pull request #85654 from Listwon/quit-to-project-list-wipe-fix-…
Browse files Browse the repository at this point in the history
…40968

Defer creating new editor process in "Quit to Project List" just like in "Reload Current Project"
  • Loading branch information
akien-mga committed Jul 28, 2024
2 parents 607b230 + 44d14cf commit 1ad905c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ad905c

Please sign in to comment.