mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 09:50:36 +00:00
QuickShow: Properly hide toolbar on toggle action
Similar to fullscreen mode we need to hide the toolbar's container.
This commit is contained in:
parent
d86d73f6e8
commit
fd5f05079d
Notes:
sideshowbarker
2024-07-19 07:20:26 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/fd5f05079d8 Pull-request: https://github.com/SerenityOS/serenity/pull/1941
1 changed files with 1 additions and 7 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue