From fd5f05079d84c1cb2844def6c5d81fa10d07331e Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 24 Apr 2020 15:33:27 +0100 Subject: [PATCH] QuickShow: Properly hide toolbar on toggle action Similar to fullscreen mode we need to hide the toolbar's container. --- Applications/QuickShow/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp index dc0c85ca06..edf032b173 100644 --- a/Applications/QuickShow/main.cpp +++ b/Applications/QuickShow/main.cpp @@ -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",