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

WindowServer: Add Menu::is_open() to improve readability

"menu.is_open()" instead of "MenuManager::the().is_open(menu)"
This commit is contained in:
Andreas Kling 2021-05-17 22:01:05 +02:00
parent dfb2178519
commit 5d0c3bd564
4 changed files with 11 additions and 3 deletions

View file

@ -34,6 +34,8 @@ public:
const ClientConnection* client() const { return m_client; }
int menu_id() const { return m_menu_id; }
bool is_open() const;
u32 alt_shortcut_character() const { return m_alt_shortcut_character; }
bool is_empty() const { return m_items.is_empty(); }