mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
WindowServer: Remove some leftover unused menubar things
This commit is contained in:
parent
e94e94becc
commit
6ae174f80a
4 changed files with 9 additions and 24 deletions
|
@ -322,7 +322,7 @@ void Menu::descend_into_submenu_at_hovered_item()
|
|||
VERIFY(hovered_item());
|
||||
auto submenu = hovered_item()->submenu();
|
||||
VERIFY(submenu);
|
||||
MenuManager::the().open_menu(*submenu, false, false);
|
||||
MenuManager::the().open_menu(*submenu, false);
|
||||
submenu->set_hovered_item(0);
|
||||
VERIFY(submenu->hovered_item()->type() != MenuItem::Separator);
|
||||
}
|
||||
|
@ -473,7 +473,7 @@ void Menu::did_activate(MenuItem& item)
|
|||
if (on_item_activation)
|
||||
on_item_activation(item);
|
||||
|
||||
MenuManager::the().close_bar();
|
||||
MenuManager::the().close_everyone();
|
||||
|
||||
if (m_client)
|
||||
m_client->post_message(Messages::WindowClient::MenuItemActivated(m_menu_id, item.identifier()));
|
||||
|
@ -553,7 +553,7 @@ void Menu::do_popup(const Gfx::IntPoint& position, bool make_input)
|
|||
|
||||
window.move_to(adjusted_pos);
|
||||
window.set_visible(true);
|
||||
MenuManager::the().open_menu(*this, false, make_input);
|
||||
MenuManager::the().open_menu(*this, make_input);
|
||||
WindowManager::the().did_popup_a_menu({});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue