mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add code comments
This commit is contained in:
parent
60ec9b5c49
commit
354b04bea4
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue