Merge pull request #63499 from RandomShaper/reset_same_crash_handler_flag

Keep crash handler status on editor restart
This commit is contained in:
Rémi Verschelde 2022-07-26 20:56:43 +02:00 committed by GitHub
commit 6097e6887d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1800,9 +1800,16 @@ void EditorNode::restart_editor() {
_exit_editor(EXIT_SUCCESS);
List<String> args;
args.push_back("--path");
args.push_back(ProjectSettings::get_singleton()->get_resource_path());
args.push_back("-e");
if (OS::get_singleton()->is_disable_crash_handler()) {
args.push_back("--disable-crash-handler");
}
if (!to_reopen.is_empty()) {
args.push_back(to_reopen);
}