mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Taskbar: Use GUI::Button::set_menu() for the start menu button :^)
This commit is contained in:
parent
15349a3712
commit
1c57bf9094
Notes:
sideshowbarker
2024-07-18 20:45:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1c57bf9094f
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);
|
||||
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue