1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00

Browser: Save search engine setting to preferences

This commit is contained in:
Maciej Zygmanowski 2021-04-29 08:53:12 +02:00 committed by Andreas Kling
parent c3cf739b94
commit 2de0ff28dd
4 changed files with 17 additions and 8 deletions

View file

@ -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()) {