mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-14 06:11:36 -06:00
when the archive has only one folder as its direct child, do not add filename to path by default on extraction; if not, add filename to path
This commit is contained in:
@@ -109,6 +109,9 @@ bool CCopyDialog::OnInit()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (soleDir == 0) {
|
||||
OnButtonAddFileName();
|
||||
}
|
||||
return CModalDialog::OnInit();
|
||||
}
|
||||
|
||||
@@ -267,6 +270,8 @@ void CCopyDialog::OnButtonAddFileName()
|
||||
currentPath += m_strRealFileName;
|
||||
|
||||
_path.SetText(currentPath);
|
||||
} else {
|
||||
_path.SetText(currentPath.Mid(0, n));
|
||||
}
|
||||
_path.SetFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user