mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Browser: Save search engine setting to preferences
This commit is contained in:
parent
c3cf739b94
commit
2de0ff28dd
Notes:
sideshowbarker
2024-07-18 18:57:05 +09:00
Author: https://github.com/sppmacd
Commit: 2de0ff28dd
Pull-request: https://github.com/SerenityOS/serenity/pull/6729
4 changed files with 17 additions and 8 deletions
|
@ -116,6 +116,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto m_config = Core::ConfigFile::get_for_app("Browser");
|
||||
Browser::g_home_url = m_config->read_entry("Preferences", "Home", "about:blank");
|
||||
Browser::g_search_engine = m_config->read_entry("Preferences", "SearchEngine", {});
|
||||
|
||||
auto ad_filter_list_or_error = Core::File::open(String::formatted("{}/BrowserContentFilters.txt", Core::StandardPaths::config_directory()), Core::IODevice::ReadOnly);
|
||||
if (!ad_filter_list_or_error.is_error()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue