diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-08-17 19:05:48 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-08-17 19:05:48 +0300 |
commit | 03ffd6451ac23975ed9446a6ffb4a7cbbdd39e62 (patch) | |
tree | 997fcf497cc003c3c68c81a5a3b06784ed263ac4 /main/main.cpp | |
parent | ba1109a3b3596d263182836c4f45cbffd12ac8f2 (diff) |
Revert "[Windows] Attach to parent console instead of creating new one."
This reverts commit 4f7a49db53c6aaabeca70fe8901144af708fb6b2.
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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") |