1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

--single-window is passed through project manager.

This means you can start godot with --single-window
This commit is contained in:
Jacob Edie
2020-09-14 18:52:45 -04:00
committed by Rémi Verschelde
parent 173c0f8737
commit 2b292a1a2a
4 changed files with 13 additions and 3 deletions

View File

@@ -2051,6 +2051,10 @@ void ProjectManager::_open_selected_projects() {
args.push_back("--disable-crash-handler");
}
if (OS::get_singleton()->is_single_window()) {
args.push_back("--single-window");
}
String exec = OS::get_singleton()->get_executable_path();
Error err = OS::get_singleton()->create_process(exec, args);
ERR_FAIL_COND(err);