1
0
Fork 0
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:
Maciej Zygmanowski 2021-04-29 08:53:12 +02:00 committed by Andreas Kling
parent c3cf739b94
commit 2de0ff28dd
Notes: sideshowbarker 2024-07-18 18:57:05 +09:00
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()) {