mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:12:45 +00:00 
			
		
		
		
	LibGfx+Userland: Make Gfx::SystemTheme propagate errors
This patch introduces error propagation to Gfx::SystemTheme to remove instances of release_value_but_fixme_should_propagate_errors(). Userland applications that have been affected by this change have been updated to utilise this propagation and as a result 4 such instances of the aforementioned method have been removed.
This commit is contained in:
		
							parent
							
								
									bdd9bc16de
								
							
						
					
					
						commit
						806a55eda1
					
				
					 15 changed files with 64 additions and 39 deletions
				
			
		|  | @ -44,8 +44,7 @@ ErrorOr<int> serenity_main(Main::Arguments) | |||
|     auto wm_config = TRY(Core::ConfigFile::open("/etc/WindowServer.ini")); | ||||
|     auto theme_name = wm_config->read_entry("Theme", "Name", "Default"); | ||||
| 
 | ||||
|     auto theme = Gfx::load_system_theme(DeprecatedString::formatted("/res/themes/{}.ini", theme_name)); | ||||
|     VERIFY(theme.is_valid()); | ||||
|     auto theme = TRY(Gfx::load_system_theme(DeprecatedString::formatted("/res/themes/{}.ini", theme_name))); | ||||
|     Gfx::set_system_theme(theme); | ||||
|     auto palette = Gfx::PaletteImpl::create_with_anonymous_buffer(theme); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cygnix Proto
						Cygnix Proto