QuickShow: Properly hide toolbar on toggle action

Similar to fullscreen mode we need to hide the toolbar's container.
This commit is contained in:
Linus Groh 2020-04-24 15:33:27 +01:00 committed by Andreas Kling
parent d86d73f6e8
commit fd5f05079d
Notes: sideshowbarker 2024-07-19 07:20:26 +09:00

View file

@ -213,13 +213,7 @@ int main(int argc, char** argv)
auto hide_show_toolbar_action = GUI::Action::create("Hide/Show Toolbar", { Mod_Ctrl, Key_T },
[&](auto&) {
main_toolbar.set_visible(!main_toolbar.is_visible());
if (main_toolbar.is_visible()) {
widget.set_toolbar_height(main_toolbar.height());
} else {
widget.set_toolbar_height(0);
}
toolbar_container.set_visible(!toolbar_container.is_visible());
});
auto about_action = GUI::Action::create("About",