mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Merge pull request #3435 from neikeq/output_focus_steal
Fix Output panel annoying focus steal
This commit is contained in:
commit
31a4762fea
3 changed files with 14 additions and 1 deletions
|
|
@ -4592,6 +4592,16 @@ ToolButton *EditorNode::add_bottom_panel_item(String p_text,Control *p_item) {
|
|||
|
||||
}
|
||||
|
||||
bool EditorNode::are_bottom_panels_hidden() const {
|
||||
|
||||
for(int i=0;i<bottom_panel_items.size();i++) {
|
||||
if (bottom_panel_items[i].button->is_pressed())
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void EditorNode::hide_bottom_panel() {
|
||||
|
||||
_bottom_panel_switch(false,0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue