1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +00:00

LibGUI: Make CommonMenus::make_accessibility_menu() infallible

This commit is contained in:
Andreas Kling 2023-08-14 10:18:28 +02:00
parent 676ef0cc3d
commit 94cd272ac0
4 changed files with 24 additions and 24 deletions

View file

@ -170,7 +170,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
timeline_menu->add_action(previous_frame_action);
timeline_menu->add_action(next_frame_action);
TRY(window->try_add_menu(TRY(GUI::CommonMenus::make_accessibility_menu(magnifier))));
TRY(window->try_add_menu(GUI::CommonMenus::make_accessibility_menu(magnifier)));
auto help_menu = TRY(window->try_add_menu("&Help"_string));
help_menu->add_action(GUI::CommonActions::make_command_palette_action(window));