mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
WindowServer: Fix incorrect current menu when switching to new item
We were forgetting to update the current menu when switching to a new item. We also rename the function from implying that only a redraw is happening, as is actually not the case. It is now more correctly named: update_for_new_hovered_item()
This commit is contained in:
parent
0d2bfc4ea0
commit
4f6b9b64c3
2 changed files with 9 additions and 7 deletions
|
@ -93,7 +93,7 @@ private:
|
|||
int padding_between_text_and_shortcut() const { return 50; }
|
||||
void did_activate(WSMenuItem&);
|
||||
void open_hovered_item();
|
||||
void redraw_for_new_hovered_item();
|
||||
void update_for_new_hovered_item();
|
||||
void decend_into_submenu_at_hovered_item();
|
||||
|
||||
WSClientConnection* m_client { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue