Taskbar: Use GUI::Button::set_menu() for the start menu button :^)

This commit is contained in:
Andreas Kling 2021-04-05 15:11:02 +02:00
parent 15349a3712
commit 1c57bf9094
Notes: sideshowbarker 2024-07-18 20:45:30 +09:00

View file

@ -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();