diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-09-14 19:56:41 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-09-14 21:52:04 +0200 |
commit | 4df86f8b048a977fed51891849859b8171e1a18b (patch) | |
tree | 46e6d3c842d34093a72953e950484f07ac5352b0 /editor | |
parent | c5f7a581f7247f599b07b0346062db39e52c7d5a (diff) |
Only display the Windows toggle console option if it can actually be used
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_node.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 4835b4beab..3a52657862 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -6198,7 +6198,9 @@ EditorNode::EditorNode() { #else p->add_shortcut(ED_SHORTCUT("editor/fullscreen_mode", TTR("Toggle Fullscreen"), KEY_MASK_SHIFT | KEY_F11), SETTINGS_TOGGLE_FULLSCREEN); #endif -#ifdef WINDOWS_ENABLED +#if defined(WINDOWS_ENABLED) && defined(WINDOWS_SUBSYSTEM_CONSOLE) + // The console can only be toggled if the application was built for the console subsystem, + // not the GUI subsystem. p->add_item(TTR("Toggle System Console"), SETTINGS_TOGGLE_CONSOLE); #endif p->add_separator(); |