Skip to content

Commit 354b04b

Browse files
committed
Add code comments
1 parent 60ec9b5 commit 354b04b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Flow.Launcher/Helper/WallpaperPathRetrieval.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static Brush GetWallpaperBrush()
5050
}
5151

5252
int originalWidth, originalHeight;
53+
// Use `using ()` instead of `using var` sentence here to ensure the wallpaper file is not locked
5354
using (var fileStream = File.OpenRead(wallpaperPath))
5455
{
5556
var decoder = BitmapDecoder.Create(fileStream, BitmapCreateOptions.DelayCreation, BitmapCacheOption.None);

0 commit comments

Comments
 (0)