mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
VisualBuilder: Use GCommonActions::make_delete_action()
This commit is contained in:
parent
b41b5433f4
commit
92b17eab23
Notes:
sideshowbarker
2024-07-19 12:06:31 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/92b17eab23b
@ -35,7 +35,7 @@ VBForm::VBForm(const String& name, GWidget* parent)
|
||||
if (auto* widget = single_selected_widget())
|
||||
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();
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user