mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:12:44 +00:00 
			
		
		
		
	Browser: Save search engine setting to preferences
This commit is contained in:
		
							parent
							
								
									c3cf739b94
								
							
						
					
					
						commit
						2de0ff28dd
					
				
					 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
	
	 Maciej Zygmanowski
						Maciej Zygmanowski