mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	Userland: Make GUI::Window construction non-fallible
				
					
				
			This commit is contained in:
		
							parent
							
								
									b6b2c6f3e2
								
							
						
					
					
						commit
						0d7b13edac
					
				
					 55 changed files with 60 additions and 60 deletions
				
			
		|  | @ -47,7 +47,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
| 
 | ||||
|     // Configure application window.
 | ||||
|     auto app_icon = GUI::Icon::default_icon("app-space-analyzer"sv); | ||||
|     auto window = TRY(GUI::Window::try_create()); | ||||
|     auto window = GUI::Window::construct(); | ||||
|     window->set_title(APP_NAME.bytes_as_string_view()); | ||||
|     window->resize(640, 480); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Ledbetter
						Tim Ledbetter