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:
shunf4
2024-04-20 21:13:00 +08:00
parent fe5a264595
commit e648b8b8db
3 changed files with 18 additions and 3 deletions

View File

@@ -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();
}