diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-13 09:11:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-13 09:11:31 +0100 |
commit | b5cfe9d74521e5595e1afb8cfd6cfe5e2ffda7da (patch) | |
tree | 87d4f2d6943ee98db153f0702049cfd03cf8a71d /editor | |
parent | ed9984c3c522627bb003ee33f40686a451773eda (diff) | |
parent | 047d66cc6f622970f4e6767a44d545fc29a44148 (diff) |
Merge pull request #35063 from timothyqiu/dock-new-window
Fixes the New Window option in macOS dock menu
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 1 | ||||
-rw-r--r-- | editor/project_manager.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 0be0ea90a3..0ea8e04471 100644 --- a/editor/editor_node.cpp +++ b/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 (OS::get_singleton()->get_main_loop()) { List<String> args; + args.push_back("-e"); String exec = OS::get_singleton()->get_executable_path(); OS::ProcessID pid = 0; diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 0a904a42df..ca3431d3ec 100644 --- a/editor/project_manager.cpp +++ b/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; if (id == ProjectList::GLOBAL_NEW_WINDOW) { List<String> args; + args.push_back("-p"); String exec = OS::get_singleton()->get_executable_path(); OS::ProcessID pid = 0; |