mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Keep crash handler status on editor restart
This commit is contained in:
parent
222e489dfd
commit
116f03a1b6
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user