Skip to content

Commit b1390c5

Browse files
authored
Fix: Fixed Status Center display when canceling extraction (#18246)
1 parent 3553fd1 commit b1390c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/Services/Storage/StorageArchiveService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ async Task<bool> DecompressAsyncWithSevenZip(string archiveFilePath, string dest
166166
// TODO: Get this method return result
167167
await zipFile.ExtractArchiveAsync(destinationFolderPath);
168168

169-
isSuccess = true;
169+
if (!statusCard.CancellationToken.IsCancellationRequested)
170+
isSuccess = true;
170171
}
171172
catch (Exception ex)
172173
{

0 commit comments

Comments
 (0)