Desktop: fix fap in settings (#1877)
This commit is contained in:
		
							parent
							
								
									865baed0bb
								
							
						
					
					
						commit
						f06930e4ae
					
				| @ -3,6 +3,7 @@ App( | |||||||
|     name="Applications", |     name="Applications", | ||||||
|     apptype=FlipperAppType.APP, |     apptype=FlipperAppType.APP, | ||||||
|     entry_point="fap_loader_app", |     entry_point="fap_loader_app", | ||||||
|  |     cdefines=["APP_FAP_LOADER"], | ||||||
|     requires=[ |     requires=[ | ||||||
|         "gui", |         "gui", | ||||||
|         "storage", |         "storage", | ||||||
|  | |||||||
| @ -11,9 +11,16 @@ static bool favorite_fap_selector_item_callback( | |||||||
|     uint8_t** icon_ptr, |     uint8_t** icon_ptr, | ||||||
|     FuriString* item_name) { |     FuriString* item_name) { | ||||||
|     UNUSED(context); |     UNUSED(context); | ||||||
|  | #ifdef APP_FAP_LOADER | ||||||
|     Storage* storage = furi_record_open(RECORD_STORAGE); |     Storage* storage = furi_record_open(RECORD_STORAGE); | ||||||
|     bool success = fap_loader_load_name_and_icon(file_path, storage, icon_ptr, item_name); |     bool success = fap_loader_load_name_and_icon(file_path, storage, icon_ptr, item_name); | ||||||
|     furi_record_close(RECORD_STORAGE); |     furi_record_close(RECORD_STORAGE); | ||||||
|  | #else | ||||||
|  |     UNUSED(file_path); | ||||||
|  |     UNUSED(icon_ptr); | ||||||
|  |     UNUSED(item_name); | ||||||
|  |     bool success = false; | ||||||
|  | #endif | ||||||
|     return success; |     return success; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 あく
						あく