1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 08:57:34 +00:00

LibGUI: Add Menu::set_children_actions_enabled() helper

This adds a helper function to Menu that allows us to set all the
children enabled/disabled.
This commit is contained in:
Marcus Nilsson 2022-01-09 00:28:05 +01:00 committed by Linus Groh
parent 18e6da6d4d
commit 708ec90bba
2 changed files with 10 additions and 0 deletions

View file

@ -45,6 +45,8 @@ public:
void visibility_did_change(Badge<WindowServerConnection>, bool visible);
void set_children_actions_enabled(bool enabled);
Function<void(bool)> on_visibility_change;
bool is_visible() const { return m_visible; }