1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

Browser: Hide tab bar if there's only one tab

This commit is contained in:
Linus Groh 2020-05-19 16:13:30 +01:00 committed by Andreas Kling
parent f4a941a5d7
commit e5ea243842
2 changed files with 3 additions and 1 deletions

View file

@ -239,7 +239,7 @@ Tab::Tab()
auto is_fullscreen = window()->is_fullscreen();
auto* tab_widget = static_cast<GUI::TabWidget*>(parent_widget());
tab_widget->set_bar_visible(!is_fullscreen);
tab_widget->set_bar_visible(!is_fullscreen && tab_widget->children().size() > 1);
m_toolbar_container->set_visible(!is_fullscreen);
m_statusbar->set_visible(!is_fullscreen);
},