mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:18:14 +00:00
LibGUI: Flash menubar when using command palette
This commit is contained in:
parent
048ed64c26
commit
c20f1e06c0
3 changed files with 6 additions and 7 deletions
|
@ -135,12 +135,10 @@ void Action::activate(Core::Object* activator)
|
|||
m_activator = nullptr;
|
||||
}
|
||||
|
||||
void Action::flash_menubar_menu()
|
||||
void Action::flash_menubar_menu(GUI::Window& window)
|
||||
{
|
||||
if (auto* app = Application::the())
|
||||
if (auto* window = app->active_window())
|
||||
for (auto& menu_item : m_menu_items)
|
||||
window->flash_menubar_menu_for(*menu_item);
|
||||
for (auto& menu_item : m_menu_items)
|
||||
window.flash_menubar_menu_for(*menu_item);
|
||||
}
|
||||
|
||||
void Action::register_button(Badge<Button>, Button& button)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue