mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
Browser: Make Refresh action in tab context menu refresh the chosen tab
It was sending refresh requests to the current tab instead.
This commit is contained in:
parent
0db481c763
commit
5c4d130af5
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ Tab::Tab(BrowserWindow& window)
|
||||||
|
|
||||||
m_tab_context_menu = GUI::Menu::construct();
|
m_tab_context_menu = GUI::Menu::construct();
|
||||||
m_tab_context_menu->add_action(GUI::CommonActions::make_reload_action([this](auto&) {
|
m_tab_context_menu->add_action(GUI::CommonActions::make_reload_action([this](auto&) {
|
||||||
this->window().reload_action().activate();
|
reload();
|
||||||
}));
|
}));
|
||||||
m_tab_context_menu->add_action(GUI::CommonActions::make_close_tab_action([this](auto&) {
|
m_tab_context_menu->add_action(GUI::CommonActions::make_close_tab_action([this](auto&) {
|
||||||
on_tab_close_request(*this);
|
on_tab_close_request(*this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue