summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-05-30 22:55:56 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-06-26 22:09:08 +0200
commite6352d1daae4295e6f1ac6c9624e2d84fbc54f15 (patch)
tree982a8ad7528dbde310894bd70b14722ba13b4a97
parentb740f645f7dab54db68a0c027be52b384fa8b687 (diff)
Keep the bottom panel visible when enabling the distraction-free mode
- Document the `EditorInterface.distraction_free_mode` property. This closes https://github.com/godotengine/godot-proposals/issues/951.
-rw-r--r--doc/classes/EditorInterface.xml1
-rw-r--r--editor/editor_node.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml
index dbe725f08b..c2c73a8b83 100644
--- a/doc/classes/EditorInterface.xml
+++ b/doc/classes/EditorInterface.xml
@@ -204,6 +204,7 @@
</methods>
<members>
<member name="distraction_free_mode" type="bool" setter="set_distraction_free_mode" getter="is_distraction_free_mode_enabled">
+ If [code]true[/code], enables distraction-free mode which hides side docks to increase the space available for the main view.
</member>
</members>
<constants>
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 8940291626..30aa24695c 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4159,7 +4159,6 @@ void EditorNode::_update_dock_slots_visibility() {
}
right_hsplit->hide();
- bottom_panel->hide();
} else {
for (int i = 0; i < DOCK_SLOT_MAX; i++) {
int tabs_visible = 0;
@@ -4189,7 +4188,6 @@ void EditorNode::_update_dock_slots_visibility() {
dock_slot[i]->set_current_tab(0);
}
}
- bottom_panel->show();
if (right_l_vsplit->is_visible() || right_r_vsplit->is_visible()) {
right_hsplit->show();