From 1c57bf9094f950a5494fc70977f07ec0bf384eab Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 5 Apr 2021 15:11:02 +0200 Subject: Taskbar: Use GUI::Button::set_menu() for the start menu button :^) --- Userland/Services/Taskbar/TaskbarWindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Userland/Services') diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index 4b5032d243..3f0fdf2bb2 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -89,10 +89,7 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr start_menu) start_button.set_fixed_size(80, 22); auto app_icon = GUI::Icon::default_icon("ladybug"); start_button.set_icon(app_icon.bitmap_for_size(16)); - - start_button.on_click = [&](auto) { - m_start_menu->popup(start_button.screen_relative_rect().top_left()); - }; + start_button.set_menu(m_start_menu); create_quick_launch_bar(); -- cgit v1.2.3