Keep crash handler status on editor restart

(cherry picked from commit 116f03a1b6)
This commit is contained in:
Pedro J. Estébanez 2022-07-26 19:07:06 +02:00 committed by Rémi Verschelde
parent 6c8d9b8401
commit 27aa752335
1 changed files with 7 additions and 0 deletions

View File

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