File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Files.App/Utils/Storage/Operations Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,8 @@ showDialog is DeleteConfirmationPolicies.PermanentOnly &&
163
163
App . HistoryWrapper . AddHistory ( history ) ;
164
164
165
165
// Execute removal tasks concurrently in background
166
- _ = Task . WhenAll ( source . Select ( x => jumpListService . RemoveFolderAsync ( x . Path ) ) ) ;
166
+ var sourcePaths = source . Select ( x => x . Path ) ;
167
+ _ = Task . WhenAll ( sourcePaths . Select ( jumpListService . RemoveFolderAsync ) ) ;
167
168
168
169
var itemsCount = banner . TotalItemsCount ;
169
170
@@ -475,7 +476,8 @@ public async Task<ReturnResult> MoveItemsAsync(IEnumerable<IStorageItemWithPath>
475
476
}
476
477
477
478
// Execute removal tasks concurrently in background
478
- _ = Task . WhenAll ( source . Select ( x => jumpListService . RemoveFolderAsync ( x . Path ) ) ) ;
479
+ var sourcePaths = source . Select ( x => x . Path ) ;
480
+ _ = Task . WhenAll ( sourcePaths . Select ( jumpListService . RemoveFolderAsync ) ) ;
479
481
480
482
var itemsCount = banner . TotalItemsCount ;
481
483
You can’t perform that action at this time.
0 commit comments