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:
parent
f4a941a5d7
commit
e5ea243842
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue