mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Enable create separate archives when multiply files selected only (issue #1523)
This commit is contained in:
parent
ed485edd9d
commit
2f4a17518e
1 changed files with 4 additions and 2 deletions
|
|
@ -70,6 +70,7 @@ type
|
|||
FExistsArchive : Boolean;
|
||||
FSourceFileSource: IFileSource;
|
||||
FTargetFileSource: IArchiveFileSource;
|
||||
FCount: Integer;
|
||||
FPlugin: Boolean;
|
||||
FPassword: String;
|
||||
FVolumeSize: String;
|
||||
|
|
@ -126,6 +127,7 @@ begin
|
|||
try
|
||||
with PackDialog do
|
||||
begin
|
||||
FCount:= Files.Count;
|
||||
FArchiveType:= 'none';
|
||||
FNewArchive:= bNewArchive;
|
||||
FSourceFileSource:= SourceFileSource;
|
||||
|
|
@ -355,7 +357,7 @@ begin
|
|||
// If file list contain directory then
|
||||
// put to the tar archive first is needed
|
||||
if not FHasFolder then
|
||||
cbCreateSeparateArchives.Checked:= True
|
||||
cbCreateSeparateArchives.Checked:= (FCount > 1)
|
||||
else
|
||||
begin
|
||||
cbPutInTarFirst.Checked:= True;
|
||||
|
|
@ -407,7 +409,7 @@ begin
|
|||
// If file list contain directory then
|
||||
// put to the tar archive first is needed
|
||||
if not FHasFolder then
|
||||
cbCreateSeparateArchives.Checked:= True
|
||||
cbCreateSeparateArchives.Checked:= (FCount > 1)
|
||||
else
|
||||
begin
|
||||
cbPutInTarFirst.Checked:= True;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue