WindowServer: Fix name typo in descend_into_submenu_at_hovered_item()

This commit is contained in:
Andreas Kling 2020-04-24 17:26:16 +02:00
parent cbb3c7aade
commit e786444ffa
Notes: sideshowbarker 2024-07-19 07:20:12 +09:00
2 changed files with 4 additions and 4 deletions

View file

@ -303,7 +303,7 @@ void Menu::open_hovered_item()
clear_hovered_item();
}
void Menu::decend_into_submenu_at_hovered_item()
void Menu::descend_into_submenu_at_hovered_item()
{
ASSERT(hovered_item());
ASSERT(hovered_item()->is_submenu());
@ -394,7 +394,7 @@ void Menu::event(Core::Event& event)
if (key == Key_Return) {
if (hovered_item()->is_submenu())
decend_into_submenu_at_hovered_item();
descend_into_submenu_at_hovered_item();
else
open_hovered_item();
return;
@ -462,7 +462,7 @@ void Menu::event(Core::Event& event)
if (key == Key_Right) {
if (hovered_item()->is_submenu())
decend_into_submenu_at_hovered_item();
descend_into_submenu_at_hovered_item();
return;
}
}

View file

@ -132,7 +132,7 @@ private:
void did_activate(MenuItem&);
void open_hovered_item();
void update_for_new_hovered_item();
void decend_into_submenu_at_hovered_item();
void descend_into_submenu_at_hovered_item();
ClientConnection* m_client { nullptr };
int m_menu_id { 0 };