mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:27:35 +00:00
LibGUI: Remove Menubar::try_add_menu()
And fall back to the infallible add_menu().
This commit is contained in:
parent
94cd272ac0
commit
5300896095
4 changed files with 8 additions and 17 deletions
|
@ -22,9 +22,8 @@ class Menubar : public Core::EventReceiver {
|
|||
public:
|
||||
virtual ~Menubar() override = default;
|
||||
|
||||
ErrorOr<void> try_add_menu(Badge<Window>, NonnullRefPtr<Menu>);
|
||||
ErrorOr<NonnullRefPtr<Menu>> try_add_menu(Badge<Window>, String name);
|
||||
Menu& add_menu(Badge<Window>, String name);
|
||||
void add_menu(Badge<Window>, NonnullRefPtr<Menu>);
|
||||
[[nodiscard]] NonnullRefPtr<Menu> add_menu(Badge<Window>, String name);
|
||||
|
||||
void for_each_menu(Function<IterationDecision(Menu&)>);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue