summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-03 11:52:29 +0200
committerGitHub <noreply@github.com>2020-09-03 11:52:29 +0200
commita77106bf7e9a5fdf6b004bff9fc883b66804bc80 (patch)
treecbed5830545f1f2b89922142751feea5eaa177d1 /editor
parentd84954a2818e72a96deec1d027028e796f2930f3 (diff)
parentc76fe59204e2a5b46f3f1b37d82029ae7600d7fe (diff)
Merge pull request #41332 from bruvzg/win_subsys_option
Revert #41164, add subsystem build option.
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp1
-rw-r--r--editor/editor_settings.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 16b8c6e0ac..e90f30496c 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -2625,6 +2625,7 @@ void EditorNode::_menu_option_confirm(int p_option, bool p_confirmed) {
case SETTINGS_TOGGLE_CONSOLE: {
bool was_visible = DisplayServer::get_singleton()->is_console_visible();
DisplayServer::get_singleton()->console_set_visible(!was_visible);
+ EditorSettings::get_singleton()->set_setting("interface/editor/hide_console_window", was_visible);
} break;
case EDITOR_SCREENSHOT: {
screenshot_timer->start();
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 7b24e6967a..561ef51f0a 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -334,6 +334,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
_initial_set("interface/editor/automatically_open_screenshots", true);
_initial_set("interface/editor/single_window_mode", false);
hints["interface/editor/single_window_mode"] = PropertyInfo(Variant::BOOL, "interface/editor/single_window_mode", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED);
+ _initial_set("interface/editor/hide_console_window", false);
_initial_set("interface/editor/save_each_scene_on_quit", true); // Regression
_initial_set("interface/editor/quit_confirmation", true);