mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 23:39:44 +00:00
HackStudio: Propagate errors using try_set_main_widget in main
This commit is contained in:
parent
cb3a643f35
commit
4c0b8a70e2
Notes:
sideshowbarker
2024-07-17 21:21:50 +09:00
Author: https://github.com/creator1creeper1
Commit: 4c0b8a70e2
Pull-request: https://github.com/SerenityOS/serenity/pull/11698
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
if (argument_absolute_path.is_null() || mode_coredump)
|
if (argument_absolute_path.is_null() || mode_coredump)
|
||||||
project_path = Core::File::real_path_for(".");
|
project_path = Core::File::real_path_for(".");
|
||||||
|
|
||||||
s_hack_studio_widget = window->set_main_widget<HackStudioWidget>(project_path);
|
s_hack_studio_widget = TRY(window->try_set_main_widget<HackStudioWidget>(project_path));
|
||||||
|
|
||||||
window->set_title(String::formatted("{} - Hack Studio", s_hack_studio_widget->project().name()));
|
window->set_title(String::formatted("{} - Hack Studio", s_hack_studio_widget->project().name()));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue