Skip to content

Commit f033c14

Browse files
Add conditional checking for switches
- Only add "cu" parameter if not 7z archive format Fixes #17257
1 parent 9793424 commit f033c14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Files.App/Data/Models/CompressArchiveModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ public async Task<bool> RunCreationAsync()
161161
//Use UTF-8 encoding.
162162
//References: 7-zip chm --> Command Line Version --> Switches
163163
//--> -m --> cu=[off | on].
164+
if (FileFormat != ArchiveFormats.SevenZip)
165+
compressor.CustomParameters.Add("cu", "on");
164166

165167
compressor.Compressing += Compressor_Compressing;
166168
compressor.FileCompressionStarted += Compressor_FileCompressionStarted;

0 commit comments

Comments
 (0)