summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-05 15:11:02 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-05 18:09:04 +0200
commit1c57bf9094f950a5494fc70977f07ec0bf384eab (patch)
tree4fa9bb31596b34f3a38752122ed57772bdf9e291 /Userland/Services
parent15349a3712dabd4ab314db45d70d9279548a2762 (diff)
downloadserenity-1c57bf9094f950a5494fc70977f07ec0bf384eab.zip
Taskbar: Use GUI::Button::set_menu() for the start menu button :^)
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/Taskbar/TaskbarWindow.cpp5
1 files changed, 1 insertions, 4 deletions
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<GUI::Menu> 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();