1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibGUI: Add GUI::Window::try_add_menu()

This is a fallible variant of add_menu() that returns ErrorOr.
This commit is contained in:
Andreas Kling 2021-11-24 13:12:09 +01:00
parent 6b79745aa4
commit bde9c2bc65
2 changed files with 11 additions and 4 deletions

View file

@ -202,6 +202,7 @@ public:
void did_disable_focused_widget(Badge<Widget>);
Menu& add_menu(String name);
ErrorOr<NonnullRefPtr<Menu>> try_add_menu(String name);
void flush_pending_paints_immediately();