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
commit 1acc788500
Notes: sideshowbarker 2024-07-17 06:40:35 +09:00
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();