mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix DistractionFreeMode and BottomPanel
This commit is contained in:
parent
2ecefada8d
commit
828242a41d
2 changed files with 5 additions and 5 deletions
|
|
@ -864,7 +864,7 @@ void EditorDockManager::focus_dock(EditorDock *p_dock) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!docks_visible) {
|
||||
if (!docks_visible && p_dock->get_parent() != EditorNode::get_bottom_panel()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -912,7 +912,7 @@ void EditorDockManager::set_docks_visible(bool p_show) {
|
|||
return;
|
||||
}
|
||||
docks_visible = p_show;
|
||||
for (int i = 0; i < DockConstants::DOCK_SLOT_MAX; i++) {
|
||||
for (int i = 0; i < DockConstants::DOCK_SLOT_BOTTOM; i++) {
|
||||
dock_slots[i].container->set_visible(docks_visible && dock_slots[i].container->get_tab_count() > 0);
|
||||
}
|
||||
_update_layout();
|
||||
|
|
|
|||
|
|
@ -115,10 +115,10 @@ void EditorBottomPanel::_repaint() {
|
|||
pin_button->set_visible(!panel_collapsed);
|
||||
expand_button->set_visible(!panel_collapsed);
|
||||
if (expand_button->is_pressed()) {
|
||||
EditorNode::get_top_split()->set_visible(panel_collapsed);
|
||||
_expand_button_toggled(!panel_collapsed);
|
||||
} else {
|
||||
_theme_changed();
|
||||
}
|
||||
|
||||
_theme_changed();
|
||||
}
|
||||
|
||||
void EditorBottomPanel::save_layout_to_config(Ref<ConfigFile> p_config_file, const String &p_section) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue