Browser: Handle close event in WebContentView

This commit is contained in:
Aliaksandr Kalenik 2023-03-07 06:00:17 +03:00 committed by Linus Groh
parent 59752807c4
commit 54a1ec2f10

View file

@ -468,6 +468,10 @@ Tab::Tab(BrowserWindow& window)
go_forward();
};
view().on_close = [this] {
on_tab_close_request(*this);
};
m_tab_context_menu = GUI::Menu::construct();
m_tab_context_menu->add_action(GUI::CommonActions::make_reload_action([this](auto&) {
reload();