Merge pull request #85654 from Listwon/quit-to-project-list-wipe-fix-40968
Defer creating new editor process in "Quit to Project List" just like in "Reload Current Project"
This commit is contained in:
commit
1ad905c027
|
@ -3407,8 +3407,7 @@ void EditorNode::_discard_changes(const String &p_str) {
|
||||||
}
|
}
|
||||||
args.push_back("--project-manager");
|
args.push_back("--project-manager");
|
||||||
|
|
||||||
Error err = OS::get_singleton()->create_instance(args);
|
OS::get_singleton()->set_restart_on_exit(true, args);
|
||||||
ERR_FAIL_COND(err);
|
|
||||||
} break;
|
} break;
|
||||||
case RELOAD_CURRENT_PROJECT: {
|
case RELOAD_CURRENT_PROJECT: {
|
||||||
restart_editor();
|
restart_editor();
|
||||||
|
|
Loading…
Reference in New Issue