File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
CollapseLauncher/XAMLs/Theme/CustomControls/LayeredBackgroundImage Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -179,8 +179,7 @@ private async ValueTask<bool> LoadImageWithInternalDecoderAsync(Uri? sourceFr
179179 return false ;
180180 }
181181
182- bool isDisposeStream = disposeStream ;
183- Stream ? sourceStream = sourceFromStream ?? await TryGetStreamFromPathAsync ( sourceFromPath ) ;
182+ Stream ? sourceStream = sourceFromStream ?? await TryGetStreamFromPathAsync ( sourceFromPath ) ;
184183 if ( sourceStream is not { CanSeek : true , CanRead : true } )
185184 {
186185 return false ;
@@ -193,7 +192,7 @@ private async ValueTask<bool> LoadImageWithInternalDecoderAsync(Uri? sourceFr
193192 image . Source = bitmapImage ;
194193
195194 await bitmapImage . SetSourceAsync ( randomStream ) ;
196- if ( isDisposeStream )
195+ if ( disposeStream )
197196 {
198197 randomStream . Dispose ( ) ;
199198 }
@@ -206,7 +205,7 @@ private async ValueTask<bool> LoadImageWithInternalDecoderAsync(Uri? sourceFr
206205 }
207206 finally
208207 {
209- if ( isDisposeStream )
208+ if ( disposeStream )
210209 {
211210 await sourceStream . DisposeAsync ( ) ;
212211 }
You can’t perform that action at this time.
0 commit comments