Hide button tree when file system dock isn't in split mode

This commit is contained in:
Guilherme Felipe 2018-01-31 17:47:23 -02:00
parent e7cf2b2e77
commit bb936b5503
1 changed files with 1 additions and 1 deletions

View File

@ -154,6 +154,7 @@ void FileSystemDock::_notification(int p_what) {
} else { } else {
tree->set_v_size_flags(SIZE_FILL); tree->set_v_size_flags(SIZE_FILL);
button_tree->hide();
if (!tree->is_visible()) { if (!tree->is_visible()) {
tree->show(); tree->show();
button_favorite->show(); button_favorite->show();
@ -163,7 +164,6 @@ void FileSystemDock::_notification(int p_what) {
if (!file_list_vb->is_visible()) { if (!file_list_vb->is_visible()) {
file_list_vb->show(); file_list_vb->show();
button_tree->hide();
_update_files(true); _update_files(true);
} }
} }