Skip to content

Commit f316a62

Browse files
authored
Fix: Fixed issue where renaming in the conflict dialog would leave the copy status in process (#15305)
1 parent 994f058 commit f316a62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ public async Task<ReturnResult> CopyItemsAsync(IEnumerable<IStorageItemWithPath>
317317

318318
banner.Progress.ReportStatus(FileSystemStatusCode.Success);
319319

320-
await Task.Yield();
321-
322320
if (registerHistory && history is not null && source.Any((item) => !string.IsNullOrWhiteSpace(item.Path)))
323321
{
324322
foreach (var item in history.Source.Zip(history.Destination, (k, v) => new { Key = k, Value = v }).ToDictionary(k => k.Key, v => v.Value))
@@ -335,6 +333,8 @@ public async Task<ReturnResult> CopyItemsAsync(IEnumerable<IStorageItemWithPath>
335333
App.HistoryWrapper.AddHistory(history);
336334
}
337335

336+
await Task.Yield();
337+
338338
var itemsCount = banner.TotalItemsCount;
339339

340340
_statusCenterViewModel.RemoveItem(banner);

0 commit comments

Comments
 (0)