mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:57:34 +00:00
Browser: Use CommonActions where possible and various fixes
This replaces some actions with CommonActions and also adds '...' to menu items that require user input.
This commit is contained in:
parent
3b9e8ec597
commit
578318ca0f
5 changed files with 17 additions and 11 deletions
|
@ -135,10 +135,10 @@ BookmarksBarWidget::BookmarksBarWidget(const String& bookmarks_file, bool enable
|
|||
on_bookmark_click(m_context_menu_url, Mod_Ctrl);
|
||||
}));
|
||||
m_context_menu->add_separator();
|
||||
m_context_menu->add_action(GUI::Action::create("&Edit", [this](auto&) {
|
||||
m_context_menu->add_action(GUI::Action::create("&Edit...", [this](auto&) {
|
||||
edit_bookmark(m_context_menu_url);
|
||||
}));
|
||||
m_context_menu->add_action(GUI::Action::create("&Delete", [this](auto&) {
|
||||
m_context_menu->add_action(GUI::CommonActions::make_delete_action([this](auto&) {
|
||||
remove_bookmark(m_context_menu_url);
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue