mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +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
Notes:
sideshowbarker
2024-07-19 05:18:53 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/1cffa28f955 Pull-request: https://github.com/SerenityOS/serenity/pull/2669
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…
Reference in a new issue