Add code comments

This commit is contained in:
Jack251970 2025-09-17 19:29:36 +08:00
parent 60ec9b5c49
commit 354b04bea4

View file

@ -50,6 +50,7 @@ public static class WallpaperPathRetrieval
}
int originalWidth, originalHeight;
// Use `using ()` instead of `using var` sentence here to ensure the wallpaper file is not locked
using (var fileStream = File.OpenRead(wallpaperPath))
{
var decoder = BitmapDecoder.Create(fileStream, BitmapCreateOptions.DelayCreation, BitmapCacheOption.None);