mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:28:12 +00:00
Browser: Use the active tab's favicon as the window icon :^)
This commit is contained in:
parent
4d8206f7c2
commit
260e4049ff
3 changed files with 12 additions and 5 deletions
|
@ -154,9 +154,10 @@ Tab::Tab()
|
|||
on_title_change(m_title);
|
||||
};
|
||||
|
||||
m_html_widget->on_favicon_change = [this](auto& bitmap) {
|
||||
m_html_widget->on_favicon_change = [this](auto& icon) {
|
||||
m_icon = icon;
|
||||
if (on_favicon_change)
|
||||
on_favicon_change(bitmap);
|
||||
on_favicon_change(icon);
|
||||
};
|
||||
|
||||
auto focus_location_box_action = GUI::Action::create("Focus location box", { Mod_Ctrl, Key_L }, [this](auto&) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue