mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
WindowServer: Redraw menu items after client updates them somehow
This fixes an issue where the undo/redo actions in TextEditor only updated once you hovered over them.
This commit is contained in:
parent
42435ce5e4
commit
17687435ca
2 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,8 @@ void Menu::redraw()
|
|||
|
||||
void Menu::redraw(MenuItem const& menu_item)
|
||||
{
|
||||
if (!menu_window())
|
||||
return;
|
||||
draw(menu_item);
|
||||
menu_window()->invalidate(menu_item.rect());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue