Browser: Use the active tab's favicon as the window icon :^)

This commit is contained in:
Andreas Kling 2020-04-24 22:47:53 +02:00
commit 260e4049ff
Notes: sideshowbarker 2024-07-19 07:19:20 +09:00
3 changed files with 12 additions and 5 deletions

View file

@ -49,6 +49,7 @@ public:
Function<void(const Gfx::Bitmap&)> on_favicon_change;
const String& title() const { return m_title; }
const Gfx::Bitmap* icon() const { return m_icon; }
private:
Tab();
@ -68,6 +69,8 @@ private:
RefPtr<GUI::MenuBar> m_menubar;
String m_title;
RefPtr<const Gfx::Bitmap> m_icon;
bool m_should_push_loads_to_history { true };
};