mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	Ladybird: Convert Browser::Settings to a singleton
				
					
				
			This commit is contained in:
		
							parent
							
								
									68dae8ab46
								
							
						
					
					
						commit
						6e40e8316e
					
				
					 6 changed files with 23 additions and 20 deletions
				
			
		|  | @ -13,8 +13,6 @@ | |||
| 
 | ||||
| namespace Ladybird { | ||||
| 
 | ||||
| extern Settings* s_settings; | ||||
| 
 | ||||
| SettingsDialog::SettingsDialog(QMainWindow* window) | ||||
|     : m_window(window) | ||||
| { | ||||
|  | @ -48,7 +46,7 @@ void SettingsDialog::save() | |||
|     auto url_string = MUST(ak_string_from_qstring(m_new_tab_page->text())); | ||||
|     if (!URL(url_string).is_valid()) | ||||
|         return; | ||||
|     s_settings->set_new_tab_page(m_new_tab_page->text()); | ||||
|     Settings::the()->set_new_tab_page(m_new_tab_page->text()); | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cameron Youell
						Cameron Youell