mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-16 23:39:44 +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:
parent
dfb2178519
commit
5d0c3bd564
Notes:
sideshowbarker
2024-07-18 17:54:07 +09:00
Author: https://github.com/awesomekling
Commit: 5d0c3bd564
4 changed files with 11 additions and 3 deletions
|
@ -658,4 +658,9 @@ void Menu::set_hovered_index(int index, bool make_input)
|
|||
}
|
||||
}
|
||||
|
||||
bool Menu::is_open() const
|
||||
{
|
||||
return MenuManager::the().is_open(*this);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue