mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 16:07:04 -06:00
Fix #128 - format switching in archiv dialog makes options wrong
This commit is contained in:
@@ -938,6 +938,7 @@ bool CCompressDialog::OnCommand(int code, int itemID, LPARAM lParam)
|
||||
m_Solid.ResetContent();
|
||||
SetMethod(GetMethodID());
|
||||
SetLevel();
|
||||
SetMethod(GetMethodID());
|
||||
SetSolidBlockSize();
|
||||
SetNumThreads();
|
||||
SetParams();
|
||||
@@ -945,19 +946,11 @@ bool CCompressDialog::OnCommand(int code, int itemID, LPARAM lParam)
|
||||
SetArchiveName2(isSFX);
|
||||
SetEncryptionMethod();
|
||||
SetMemoryUsage();
|
||||
SetMethod(GetMethodID());
|
||||
return true;
|
||||
}
|
||||
|
||||
case IDC_COMPRESS_LEVEL:
|
||||
{
|
||||
{
|
||||
const CArcInfoEx &ai = (*ArcFormats)[GetFormatIndex()];
|
||||
int index = FindRegistryFormatAlways(ai.Name);
|
||||
NCompression::CFormatOptions &fo = m_RegistryInfo.Formats[index];
|
||||
fo.ResetForLevelChange();
|
||||
}
|
||||
|
||||
SetSolidBlockSize();
|
||||
SetNumThreads();
|
||||
CheckSFXNameChange();
|
||||
@@ -967,7 +960,13 @@ bool CCompressDialog::OnCommand(int code, int itemID, LPARAM lParam)
|
||||
|
||||
case IDC_COMPRESS_METHOD:
|
||||
{
|
||||
SetMethod(GetMethodID());
|
||||
{
|
||||
const CArcInfoEx &ai = (*ArcFormats)[GetFormatIndex()];
|
||||
int index = FindRegistryFormatAlways(ai.Name);
|
||||
NCompression::CFormatOptions &fo = m_RegistryInfo.Formats[index];
|
||||
fo.ResetForLevelChange();
|
||||
}
|
||||
|
||||
SetDictionary();
|
||||
SetOrder();
|
||||
SetSolidBlockSize();
|
||||
|
||||
Reference in New Issue
Block a user