@@ -147,7 +147,7 @@ public async Task LoadAsync(string filePath, bool isImageLoadF
147147 _currentImage . Visibility = Visibility . Visible ;
148148 App . ToggleBlurBackdrop ( ) ;
149149 }
150- else if ( _currentImage != null )
150+ else
151151 {
152152 _currentImage . Visibility = Visibility . Collapsed ;
153153 }
@@ -273,13 +273,14 @@ private void CreateCanvasBitmap()
273273 byte [ ] temporaryBuffer = ArrayPool < byte > . Shared . Rent ( widthInt * heightInt * 4 ) ;
274274 try
275275 {
276- _currentCanvasBitmap ??= CanvasBitmap . CreateFromBytes ( _currentCanvasDevice ,
277- temporaryBuffer ,
278- widthInt ,
279- heightInt ,
280- Windows . Graphics . DirectX . DirectXPixelFormat . B8G8R8A8UIntNormalized ,
281- CanvasBaseDpi ,
282- CanvasAlphaMode . Ignore ) ;
276+ _currentCanvasBitmap ??= CanvasBitmap
277+ . CreateFromBytes ( _currentCanvasDevice ,
278+ temporaryBuffer ,
279+ widthInt ,
280+ heightInt ,
281+ Windows . Graphics . DirectX . DirectXPixelFormat . B8G8R8A8UIntNormalized ,
282+ CanvasBaseDpi ,
283+ CanvasAlphaMode . Ignore ) ;
283284 }
284285 finally
285286 {
@@ -357,11 +358,12 @@ private async Task GetPreviewAsColorPalette(string file)
357358 StorageFile storageFile = await GetFileAsStorageFile ( file ) ;
358359 using StorageItemThumbnail thumbnail = await storageFile . GetThumbnailAsync ( ThumbnailMode . VideosView ) ;
359360
360- await ColorPaletteUtility . ApplyAccentColor ( ParentUI ,
361- thumbnail ,
362- string . Empty ,
363- false ,
364- true ) ;
361+ await ColorPaletteUtility
362+ . ApplyAccentColor ( ParentUI ,
363+ thumbnail ,
364+ string . Empty ,
365+ false ,
366+ true ) ;
365367 }
366368
367369 private static async Task < StorageFile > GetFileAsStorageFile ( string filePath )
0 commit comments