1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

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
parent 4d8206f7c2
commit 260e4049ff
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 };
};