diff --git a/NanaZip.Core/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp b/NanaZip.Core/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp index ad222b130..c80c970ae 100644 --- a/NanaZip.Core/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp +++ b/NanaZip.Core/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp @@ -1,4 +1,4 @@ -// ExtractDialog.cpp +// ExtractDialog.cpp #include "StdAfx.h" @@ -192,17 +192,16 @@ bool CExtractDialog::OnInit() UString pathPrefix = DirPath; #ifndef Z7_SFX - + + UString pathName; + SplitPathToParts_Smart(DirPath, pathPrefix, pathName); + if (pathPrefix.IsEmpty()) + pathPrefix = pathName; + else + _pathName.SetText(pathName); + if (_info.SplitDest.Val) - { CheckButton(IDX_EXTRACT_NAME_ENABLE, true); - UString pathName; - SplitPathToParts_Smart(DirPath, pathPrefix, pathName); - if (pathPrefix.IsEmpty()) - pathPrefix = pathName; - else - _pathName.SetText(pathName); - } else ShowItem_Bool(IDE_EXTRACT_NAME, false); diff --git a/NanaZip.UI.Classic/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp b/NanaZip.UI.Classic/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp index 4cc73fe92..f1d18b283 100644 --- a/NanaZip.UI.Classic/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp +++ b/NanaZip.UI.Classic/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp @@ -1,4 +1,4 @@ -// ExtractDialog.cpp +// ExtractDialog.cpp #include "StdAfx.h" @@ -188,16 +188,15 @@ bool CExtractDialog::OnInit() #ifndef _SFX + UString pathName; + SplitPathToParts_Smart(DirPath, pathPrefix, pathName); + if (pathPrefix.IsEmpty()) + pathPrefix = pathName; + else + _pathName.SetText(pathName); + if (_info.SplitDest.Val) - { CheckButton(IDX_EXTRACT_NAME_ENABLE, true); - UString pathName; - SplitPathToParts_Smart(DirPath, pathPrefix, pathName); - if (pathPrefix.IsEmpty()) - pathPrefix = pathName; - else - _pathName.SetText(pathName); - } else ShowItem_Bool(IDE_EXTRACT_NAME, false); diff --git a/NanaZip.UI.Modern/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp b/NanaZip.UI.Modern/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp index 4cc73fe92..f1d18b283 100644 --- a/NanaZip.UI.Modern/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp +++ b/NanaZip.UI.Modern/SevenZip/CPP/7zip/UI/GUI/ExtractDialog.cpp @@ -1,4 +1,4 @@ -// ExtractDialog.cpp +// ExtractDialog.cpp #include "StdAfx.h" @@ -188,16 +188,15 @@ bool CExtractDialog::OnInit() #ifndef _SFX + UString pathName; + SplitPathToParts_Smart(DirPath, pathPrefix, pathName); + if (pathPrefix.IsEmpty()) + pathPrefix = pathName; + else + _pathName.SetText(pathName); + if (_info.SplitDest.Val) - { CheckButton(IDX_EXTRACT_NAME_ENABLE, true); - UString pathName; - SplitPathToParts_Smart(DirPath, pathPrefix, pathName); - if (pathPrefix.IsEmpty()) - pathPrefix = pathName; - else - _pathName.SetText(pathName); - } else ShowItem_Bool(IDE_EXTRACT_NAME, false);