mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Keep crash handler status on editor restart
(cherry picked from commit 116f03a1b6)
This commit is contained in:
committed by
Rémi Verschelde
parent
6c8d9b8401
commit
27aa752335
@@ -1625,9 +1625,16 @@ void EditorNode::restart_editor() {
|
||||
_exit_editor();
|
||||
|
||||
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 != String()) {
|
||||
args.push_back(to_reopen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user