mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
SQLStudio: Propagate errors from MainWidget::initialize_menubar()
This commit is contained in:
parent
0b110c88ae
commit
83af64f053
Notes:
sideshowbarker
2024-07-17 00:37:23 +09:00
Author: https://github.com/krkk
Commit: 83af64f053
Pull-request: https://github.com/SerenityOS/serenity/pull/18410
Reviewed-by: https://github.com/AtkinsSJ
3 changed files with 27 additions and 26 deletions
|
@ -31,7 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->set_title("SQL Studio");
|
||||
|
||||
auto main_widget = TRY(window->set_main_widget<MainWidget>());
|
||||
main_widget->initialize_menu(window);
|
||||
TRY(main_widget->initialize_menu(window));
|
||||
|
||||
window->on_close_request = [&] {
|
||||
if (main_widget->request_close())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue