mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
Taskbar: Made it possible to add a system menu to taskbar later
This makes it possible to construct the taskbar before the system menu and remove the awkward reference in Taskbar/main.cpp
This commit is contained in:
parent
7456a84e68
commit
7afb7e65d5
3 changed files with 28 additions and 14 deletions
|
@ -70,7 +70,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto menu = TRY(build_system_menu(window_ref));
|
||||
menu->realize_menu_if_needed();
|
||||
|
||||
auto window = TRY(TaskbarWindow::try_create(move(menu)));
|
||||
auto window = TRY(TaskbarWindow::try_create());
|
||||
window->add_system_menu(menu);
|
||||
window_ref.window = window.ptr();
|
||||
|
||||
window->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue