瀏覽代碼

Merge pull request #35063 from timothyqiu/dock-new-window

Fixes the New Window option in macOS dock menu
Rémi Verschelde 5 年之前
父節點
當前提交
b5cfe9d745
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      editor/editor_node.cpp
  2. 1 0
      editor/project_manager.cpp

+ 1 - 0
editor/editor_node.cpp

@@ -5079,6 +5079,7 @@ void EditorNode::_global_menu_action(const Variant &p_id, const Variant &p_meta)
 	if (id == GLOBAL_NEW_WINDOW) {
 	if (id == GLOBAL_NEW_WINDOW) {
 		if (OS::get_singleton()->get_main_loop()) {
 		if (OS::get_singleton()->get_main_loop()) {
 			List<String> args;
 			List<String> args;
+			args.push_back("-e");
 			String exec = OS::get_singleton()->get_executable_path();
 			String exec = OS::get_singleton()->get_executable_path();
 
 
 			OS::ProcessID pid = 0;
 			OS::ProcessID pid = 0;

+ 1 - 0
editor/project_manager.cpp

@@ -1981,6 +1981,7 @@ void ProjectManager::_global_menu_action(const Variant &p_id, const Variant &p_m
 	int id = (int)p_id;
 	int id = (int)p_id;
 	if (id == ProjectList::GLOBAL_NEW_WINDOW) {
 	if (id == ProjectList::GLOBAL_NEW_WINDOW) {
 		List<String> args;
 		List<String> args;
+		args.push_back("-p");
 		String exec = OS::get_singleton()->get_executable_path();
 		String exec = OS::get_singleton()->get_executable_path();
 
 
 		OS::ProcessID pid = 0;
 		OS::ProcessID pid = 0;