File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -246,12 +246,14 @@ public record PreviewInfo
246
246
/// </summary>
247
247
public bool IsMedia { get ; set ; }
248
248
public string Description { get ; set ; }
249
+ public IconDelegate PreviewDelegate { get ; set ; }
249
250
250
251
public static PreviewInfo Default { get ; } = new ( )
251
252
{
252
253
PreviewImagePath = null ,
253
254
Description = null ,
254
255
IsMedia = false ,
256
+ PreviewDelegate = null ,
255
257
} ;
256
258
}
257
259
}
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ private async Task LoadImageAsync()
202
202
private async Task LoadPreviewImageAsync ( )
203
203
{
204
204
var imagePath = string . IsNullOrEmpty ( Result . Preview . PreviewImagePath ) ? Result . IcoPath : Result . Preview . PreviewImagePath ;
205
- var iconDelegate = Result . Icon ;
205
+ var iconDelegate = Result . Icon ?? Result . Preview . PreviewDelegate ;
206
206
if ( ImageLoader . CacheContainImage ( imagePath , true ) )
207
207
{
208
208
previewImage = await LoadImageInternalAsync ( imagePath , iconDelegate , true ) . ConfigureAwait ( false ) ;
You can’t perform that action at this time.
0 commit comments