LibGUI: Remove Menu::try_add_separator()

And fall back to the infallible add_separator().
This commit is contained in:
Andreas Kling 2023-08-14 07:19:40 +02:00
commit 1525fa3b8f
Notes: sideshowbarker 2024-07-17 10:16:43 +09:00
41 changed files with 132 additions and 142 deletions

View file

@ -66,7 +66,7 @@ ErrorOr<void> PresenterWidget::initialize_menubar()
this->set_file(response.value().filename());
});
TRY(file_menu->try_add_action(open_action));
TRY(file_menu->try_add_separator());
file_menu->add_separator();
TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([](auto&) {
GUI::Application::the()->quit();
})));