mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:57:44 +00:00
Taskbar: Add a factory function for TaskbarWindow
This means the errors all the way from Individual widgets get propagated up.
This commit is contained in:
parent
f40cb8d771
commit
1acc788500
3 changed files with 36 additions and 10 deletions
|
@ -58,7 +58,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
TRY(Core::System::pledge("stdio recvfd sendfd proc exec rpath"));
|
||||
|
||||
auto window = TRY(TaskbarWindow::try_create());
|
||||
auto window = TRY(TaskbarWindow::create());
|
||||
|
||||
auto menu = TRY(build_system_menu(*window));
|
||||
menu->realize_menu_if_needed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue