mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +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
Notes:
sideshowbarker
2024-07-18 03:20:16 +09:00
Author: https://github.com/metmo
Commit: 578318ca0f
Pull-request: https://github.com/SerenityOS/serenity/pull/10092
Reviewed-by: https://github.com/mustafaquraish ✅
5 changed files with 17 additions and 11 deletions
|
@ -324,10 +324,10 @@ Tab::Tab(BrowserWindow& window)
|
|||
};
|
||||
|
||||
m_tab_context_menu = GUI::Menu::construct();
|
||||
m_tab_context_menu->add_action(GUI::Action::create("&Reload Tab", [this](auto&) {
|
||||
m_tab_context_menu->add_action(GUI::CommonActions::make_reload_action([this](auto&) {
|
||||
this->window().reload_action().activate();
|
||||
}));
|
||||
m_tab_context_menu->add_action(GUI::Action::create("&Close Tab", [this](auto&) {
|
||||
m_tab_context_menu->add_action(GUI::CommonActions::make_close_tab_action([this](auto&) {
|
||||
on_tab_close_request(*this);
|
||||
}));
|
||||
m_tab_context_menu->add_action(GUI::Action::create("&Duplicate Tab", [this](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue