mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:47:35 +00:00
WindowServer: Allow updating the name of a menu
This commit is contained in:
parent
952f6bbb2a
commit
cf730403ea
5 changed files with 29 additions and 0 deletions
|
@ -752,6 +752,11 @@ void Menu::set_hovered_index(int index, bool make_input)
|
|||
redraw(*old_hovered_item);
|
||||
}
|
||||
|
||||
void Menu::set_name(DeprecatedString name)
|
||||
{
|
||||
m_name = move(name);
|
||||
}
|
||||
|
||||
bool Menu::is_open() const
|
||||
{
|
||||
return MenuManager::the().is_open(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue