mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 08:22:55 +00:00
LibWebView: Fire all observers when settings are restored to default
Otherwise the change is not propagated to the WebContent process for some of these.
This commit is contained in:
parent
aad95d8d9d
commit
26ec01068f
Notes:
github-actions[bot]
2025-04-04 08:17:43 +00:00
Author: https://github.com/trflynn89
Commit: 26ec01068f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4215
Reviewed-by: https://github.com/gmta ✅
1 changed files with 6 additions and 1 deletions
|
@ -173,8 +173,13 @@ void Settings::restore_defaults()
|
|||
|
||||
persist_settings();
|
||||
|
||||
for (auto& observer : m_observers)
|
||||
for (auto& observer : m_observers) {
|
||||
observer.new_tab_page_url_changed();
|
||||
observer.search_engine_changed();
|
||||
observer.autocomplete_engine_changed();
|
||||
observer.autoplay_settings_changed();
|
||||
observer.do_not_track_changed();
|
||||
}
|
||||
}
|
||||
|
||||
void Settings::set_new_tab_page_url(URL::URL new_tab_page_url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue