From dbedcee2cb2682fc57e82fb0a39f38c046165e64 Mon Sep 17 00:00:00 2001 From: Dov Frankel Date: Thu, 17 Feb 2022 07:20:17 -0500 Subject: [PATCH] Stopped updating NSProgressFileTotalCountKey and NSProgressFileCompletedCountKey user info dictionary keys while extracting files, since that prevents the file name from showing in the localized description under iOS/iPadOS 15 and macOS 12 --- Classes/URKArchive.mm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Classes/URKArchive.mm b/Classes/URKArchive.mm index ae669cc..baa2319 100644 --- a/Classes/URKArchive.mm +++ b/Classes/URKArchive.mm @@ -517,7 +517,7 @@ - (BOOL)extractFilesTo:(NSString *)filePath BOOL success = [self performActionWithArchiveOpen:^(NSError **innerError) { URKCreateActivity("Performing File Extraction"); - int RHCode = 0, PFCode = 0, filesExtracted = 0; + int RHCode = 0, PFCode = 0; URKFileInfo *fileInfo; URKLogInfo("Extracting to %{public}@", filePath); @@ -576,12 +576,7 @@ - (BOOL)extractFilesTo:(NSString *)filePath return; } - [progress setUserInfoObject:@(++filesExtracted) - forKey:NSProgressFileCompletedCountKey]; - [progress setUserInfoObject:@(fileInfos.count) - forKey:NSProgressFileTotalCountKey]; progress.completedUnitCount += fileInfo.uncompressedSize; - URKLogDebug("Finished extracting %{public}@. Extraction %f complete", fileInfo.filename, progress.fractionCompleted); if (progressBlock) {