mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 23:42:17 +00:00
LibGUI: Remove Menu::try_add_submenu()
And fall back to the infallible add_submenu().
This commit is contained in:
parent
1525fa3b8f
commit
eec328e2ab
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/awesomekling
Commit: eec328e2ab
Pull-request: https://github.com/SerenityOS/serenity/pull/20571
18 changed files with 94 additions and 104 deletions
|
@ -42,11 +42,10 @@ public:
|
|||
Action* action_at(size_t);
|
||||
|
||||
ErrorOr<void> try_add_action(NonnullRefPtr<Action>);
|
||||
ErrorOr<NonnullRefPtr<Menu>> try_add_submenu(String name);
|
||||
|
||||
void add_action(NonnullRefPtr<Action>);
|
||||
void add_separator();
|
||||
Menu& add_submenu(String name);
|
||||
[[nodiscard]] NonnullRefPtr<Menu> add_submenu(String name);
|
||||
void remove_all_actions();
|
||||
|
||||
ErrorOr<void> add_recent_files_list(Function<void(Action&)>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue