From a3e491435593f75e394b8ec72c192d3119bf72d0 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sun, 24 Jan 2016 16:26:03 +0100 Subject: Fix Output panel annoying focus steal --- tools/editor/editor_node.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/editor/editor_node.cpp') diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index eae2d69dd..8d3613460 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -4579,6 +4579,16 @@ ToolButton *EditorNode::add_bottom_panel_item(String p_text,Control *p_item) { } +bool EditorNode::are_bottom_panels_hidden() const { + + for(int i=0;iis_pressed()) + return false; + } + + return true; +} + void EditorNode::hide_bottom_panel() { _bottom_panel_switch(false,0); -- cgit v1.3