mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibGUI: Make Menu::add_recent_files_list() infallible
This commit is contained in:
parent
f2faf2767f
commit
676ef0cc3d
11 changed files with 20 additions and 21 deletions
|
@ -726,7 +726,7 @@ ErrorOr<void> SpreadsheetWidget::initialize_menubar(GUI::Window& window)
|
|||
file_menu->add_separator();
|
||||
file_menu->add_action(*m_import_action);
|
||||
file_menu->add_separator();
|
||||
TRY(file_menu->add_recent_files_list([&](auto& action) {
|
||||
file_menu->add_recent_files_list([&](auto& action) {
|
||||
if (!request_close())
|
||||
return;
|
||||
|
||||
|
@ -734,7 +734,7 @@ ErrorOr<void> SpreadsheetWidget::initialize_menubar(GUI::Window& window)
|
|||
if (response.is_error())
|
||||
return;
|
||||
load_file(response.value().filename(), response.value().stream());
|
||||
}));
|
||||
});
|
||||
file_menu->add_action(*m_quit_action);
|
||||
|
||||
auto edit_menu = TRY(window.try_add_menu("&Edit"_string));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue