mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +00:00
Taskbar: Use GUI::Button::set_menu() for the start menu button :^)
This commit is contained in:
parent
15349a3712
commit
1c57bf9094
1 changed files with 1 additions and 4 deletions
|
@ -89,10 +89,7 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu)
|
||||||
start_button.set_fixed_size(80, 22);
|
start_button.set_fixed_size(80, 22);
|
||||||
auto app_icon = GUI::Icon::default_icon("ladybug");
|
auto app_icon = GUI::Icon::default_icon("ladybug");
|
||||||
start_button.set_icon(app_icon.bitmap_for_size(16));
|
start_button.set_icon(app_icon.bitmap_for_size(16));
|
||||||
|
start_button.set_menu(m_start_menu);
|
||||||
start_button.on_click = [&](auto) {
|
|
||||||
m_start_menu->popup(start_button.screen_relative_rect().top_left());
|
|
||||||
};
|
|
||||||
|
|
||||||
create_quick_launch_bar();
|
create_quick_launch_bar();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue