Skip to content

Commit 265c28a

Browse files
Don't reset compression method after changing level (#758)
* Don't reset compression method after changing level Signed-off-by: Dongle <[email protected]> * Add the original code Signed-off-by: Dongle <[email protected]> --------- Signed-off-by: Dongle <[email protected]>
1 parent cb84c63 commit 265c28a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

NanaZip.UI.Classic/SevenZip/CPP/7zip/UI/GUI/CompressDialog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,10 @@ bool CCompressDialog::OnCommand(int code, int itemID, LPARAM lParam)
13661366
{
13671367
Get_FormatOptions().ResetForLevelChange();
13681368

1369-
SetMethod();
1369+
// **************** NanaZip Modification Start ****************
1370+
// SetMethod();
1371+
SetMethod(GetMethodID());
1372+
// **************** NanaZip Modification End ****************
13701373
MethodChanged();
13711374
SetSolidBlockSize();
13721375
SetNumThreads();

NanaZip.UI.Modern/SevenZip/CPP/7zip/UI/GUI/CompressDialog.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,10 @@ bool CCompressDialog::OnCommand(int code, int itemID, LPARAM lParam)
13661366
{
13671367
Get_FormatOptions().ResetForLevelChange();
13681368

1369-
SetMethod();
1369+
// **************** NanaZip Modification Start ****************
1370+
// SetMethod();
1371+
SetMethod(GetMethodID());
1372+
// **************** NanaZip Modification End ****************
13701373
MethodChanged();
13711374
SetSolidBlockSize();
13721375
SetNumThreads();

0 commit comments

Comments
 (0)