WindowServer: Allow updating the name of a menu

This commit is contained in:
MacDue 2023-03-27 00:04:00 +01:00 committed by Linus Groh
commit cf730403ea
Notes: sideshowbarker 2024-07-16 22:17:36 +09:00
5 changed files with 29 additions and 0 deletions

View file

@ -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);