1
Fork 0
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:
Karol Kosek 2022-08-05 01:05:46 +02:00 committed by Andreas Kling
parent 0db481c763
commit 5c4d130af5

View file

@ -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);