mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Browser: Handle close event in WebContentView
This commit is contained in:
parent
59752807c4
commit
54a1ec2f10
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue