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()
6161
6262 // Thumbnail data is valid, set the item icon
6363 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 ) ;
6565 }
6666
6767 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()
9797 }
9898 if ( thumbnailData is not null && thumbnailData . Length > 0 )
9999 {
100- Thumbnail = await App . Window . DispatcherQueue . EnqueueAsync ( ( ) => thumbnailData . ToBitmapAsync ( Constants . Widgets . WidgetIconSize ) ) ;
100+ Thumbnail = await thumbnailData . ToBitmapAsync ( Constants . Widgets . WidgetIconSize ) ;
101101 }
102102 }
103103 }
You can’t perform that action at this time.
0 commit comments