From 03ffd6451ac23975ed9446a6ffb4a7cbbdd39e62 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 17 Aug 2020 19:05:48 +0300 Subject: Revert "[Windows] Attach to parent console instead of creating new one." This reverts commit 4f7a49db53c6aaabeca70fe8901144af708fb6b2. --- main/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main/main.cpp') diff --git a/main/main.cpp b/main/main.cpp index e45162c0f3..413af9017b 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2278,6 +2278,13 @@ bool Main::start() { } if (project_manager || editor) { + if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_CONSOLE_WINDOW)) { + // Hide console window if requested (Windows-only). + bool hide_console = EditorSettings::get_singleton()->get_setting( + "interface/editor/hide_console_window"); + DisplayServer::get_singleton()->console_set_visible(!hide_console); + } + // Load SSL Certificates from Editor Settings (or builtin) Crypto::load_default_certificates(EditorSettings::get_singleton()->get_setting( "network/ssl/editor_ssl_certificates") -- cgit v1.2.3