1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:17:46 +00:00

WindowServer: Remove redundant Window::set_visible() in Menu::do_popup()

We're already calling MenuManager::open_menu(), which will take care of
making the menu window visible if needed.
This commit is contained in:
Andreas Kling 2021-11-05 00:53:40 +01:00
parent 5f8c949ea1
commit 239520ae54

View file

@ -638,7 +638,6 @@ void Menu::do_popup(const Gfx::IntPoint& position, bool make_input, bool as_subm
}
window.move_to(adjusted_pos);
set_visible(true);
MenuManager::the().open_menu(*this, make_input);
WindowManager::the().did_popup_a_menu({});
}