1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:37:34 +00:00

GMenu: Update apps now that you can create a nameless GMenu

We had many context menus with names, simply because you were forced
to give them names.
This commit is contained in:
Andreas Kling 2019-09-13 22:14:07 +02:00
parent 5eb2c138e2
commit 11f2e7cd5c
7 changed files with 7 additions and 7 deletions

View file

@ -48,7 +48,7 @@ void EraseTool::on_mousemove(GMouseEvent& event)
void EraseTool::on_contextmenu(GContextMenuEvent& event)
{
if (!m_context_menu) {
m_context_menu = make<GMenu>("EraseTool Context Menu");
m_context_menu = make<GMenu>();
m_context_menu->add_action(GAction::create("1", [this](auto&) {
m_thickness = 1;
}));