1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

LibGUI: Make Menu::add_recent_files_list() infallible

This commit is contained in:
Andreas Kling 2023-08-14 10:16:18 +02:00
parent f2faf2767f
commit 676ef0cc3d
11 changed files with 20 additions and 21 deletions

View file

@ -46,7 +46,7 @@ public:
[[nodiscard]] NonnullRefPtr<Menu> add_submenu(String name);
void remove_all_actions();
ErrorOr<void> add_recent_files_list(Function<void(Action&)>);
void add_recent_files_list(Function<void(Action&)>);
void popup(Gfx::IntPoint screen_position, RefPtr<Action> const& default_action = nullptr, Gfx::IntRect const& button_rect = {});
void dismiss();