mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
WindowServer: Allow updating the name of a menu
This commit is contained in:
parent
952f6bbb2a
commit
cf730403ea
Notes:
sideshowbarker
2024-07-16 22:17:36 +09:00
Author: https://github.com/MacDue
Commit: cf730403ea
Pull-request: https://github.com/SerenityOS/serenity/pull/18054
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/linusg
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