mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
VisualBuilder: Use GCommonActions::make_delete_action()
This commit is contained in:
parent
b41b5433f4
commit
92b17eab23
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ VBForm::VBForm(const String& name, GWidget* parent)
|
||||||
if (auto* widget = single_selected_widget())
|
if (auto* widget = single_selected_widget())
|
||||||
widget->gwidget()->move_to_back();
|
widget->gwidget()->move_to_back();
|
||||||
}));
|
}));
|
||||||
m_context_menu->add_action(GAction::create("Delete", [this](auto&) {
|
m_context_menu->add_action(GCommonActions::make_delete_action([this](auto&) {
|
||||||
delete_selected_widgets();
|
delete_selected_widgets();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue