1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:17:35 +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:
Arda Cinar 2022-12-23 22:00:17 +03:00 committed by Andreas Kling
parent f40cb8d771
commit 1acc788500
3 changed files with 36 additions and 10 deletions

View file

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