feat: append filename also on combo select

This commit is contained in:
shunf4
2024-09-03 00:50:16 +08:00
parent 2dbb212482
commit abb4a992d9

View File

@@ -387,6 +387,9 @@ bool CCopyDialog::OnCommand(unsigned code, unsigned itemID, LPARAM lParam)
{ {
UString strPath; UString strPath;
_path.GetText(strPath); _path.GetText(strPath);
if (isActuallyAppendingFilename) {
OnButtonAddFileName();
}
ShowPathFreeSpace(strPath); ShowPathFreeSpace(strPath);
return true; return true;
@@ -398,6 +401,9 @@ bool CCopyDialog::OnCommand(unsigned code, unsigned itemID, LPARAM lParam)
{ {
UString strPath; UString strPath;
_path.GetLBText(nSel, strPath); _path.GetLBText(nSel, strPath);
if (isActuallyAppendingFilename) {
OnButtonAddFileName();
}
ShowPathFreeSpace(strPath); ShowPathFreeSpace(strPath);
} }
return true; return true;