mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
Browser: Unset location bar icon on load start
This avoids having a stale icon from a previous page load in the location box if a subsequently visited page doesn't trigger an icon change.
This commit is contained in:
parent
14477eb565
commit
1cffa28f95
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ Tab::Tab()
|
|||
};
|
||||
|
||||
m_page_view->on_load_start = [this](auto& url) {
|
||||
m_location_box->set_icon(nullptr);
|
||||
m_location_box->set_text(url.to_string());
|
||||
if (m_should_push_loads_to_history)
|
||||
m_history.push(url);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue