diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-28 20:30:01 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-28 20:31:51 +0200 |
commit | 5b4b72e6995a7ffdc93ec3799c1942c03ef3907c (patch) | |
tree | 1ec6d69f3f6fdbafbd1388b99d8f3df7e347bae1 /Applications | |
parent | 463c2e3768bc5b0d9af7a0aa3a4c13bac794f239 (diff) | |
download | serenity-5b4b72e6995a7ffdc93ec3799c1942c03ef3907c.zip |
Browser: Don't put favicons as the window icon
It's nicer to always use the browser's own app icon instead. :^)
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/Browser/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Applications/Browser/main.cpp b/Applications/Browser/main.cpp index ec67ace18e..f3d9ca24b9 100644 --- a/Applications/Browser/main.cpp +++ b/Applications/Browser/main.cpp @@ -89,7 +89,7 @@ int main(int argc, char** argv) auto window = GUI::Window::construct(); window->set_rect(100, 100, 640, 480); - window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/filetype-html.png")); + window->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-browser.png")); window->set_title("Browser"); auto& widget = window->set_main_widget<GUI::Widget>(); @@ -108,7 +108,6 @@ int main(int argc, char** argv) tab_widget.on_change = [&](auto& active_widget) { auto& tab = static_cast<Browser::Tab&>(active_widget); window->set_title(String::format("%s - Browser", tab.title().characters())); - window->set_icon(tab.icon() ? tab.icon() : default_favicon.ptr()); tab.did_become_active(); }; @@ -128,8 +127,6 @@ int main(int argc, char** argv) new_tab.on_favicon_change = [&](auto& bitmap) { tab_widget.set_tab_icon(new_tab, &bitmap); - if (tab_widget.active_widget() == &new_tab) - window->set_icon(&bitmap); }; new_tab.on_tab_open_request = [&](auto& url) { |