File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Files.App/UserControls/Widgets Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ public async Task LoadCardThumbnailAsync()
61
61
62
62
// Thumbnail data is valid, set the item icon
63
63
if ( thumbnailData is not null && thumbnailData . Length > 0 )
64
- Thumbnail = await App . Window . DispatcherQueue . EnqueueAsync ( ( ) => thumbnailData . ToBitmapAsync ( Constants . Widgets . WidgetIconSize ) ) ;
64
+ Thumbnail = await thumbnailData . ToBitmapAsync ( Constants . Widgets . WidgetIconSize ) ;
65
65
}
66
66
67
67
public int CompareTo ( DriveCardItem ? other ) => Item . Path . CompareTo ( other ? . Item ? . Path ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ public async Task LoadCardThumbnailAsync()
97
97
}
98
98
if ( thumbnailData is not null && thumbnailData . Length > 0 )
99
99
{
100
- Thumbnail = await App . Window . DispatcherQueue . EnqueueAsync ( ( ) => thumbnailData . ToBitmapAsync ( Constants . Widgets . WidgetIconSize ) ) ;
100
+ Thumbnail = await thumbnailData . ToBitmapAsync ( Constants . Widgets . WidgetIconSize ) ;
101
101
}
102
102
}
103
103
}
You can’t perform that action at this time.
0 commit comments