mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: Smart extract option (issue #3)
This commit is contained in:
parent
056efc6fa8
commit
4a13fe207e
2 changed files with 7 additions and 0 deletions
|
|
@ -143,6 +143,7 @@ inherited frmExtractDlg: TfrmExtractDlg
|
|||
Height = 26
|
||||
Top = 6
|
||||
Width = 446
|
||||
AllowGrayed = True
|
||||
BorderSpacing.Top = 2
|
||||
Caption = 'Unpack each archive to a &separate subdir (name of the archive)'
|
||||
TabOrder = 0
|
||||
|
|
|
|||
|
|
@ -278,6 +278,12 @@ begin
|
|||
// Set operation specific options
|
||||
if Assigned(Operation) then
|
||||
begin
|
||||
if cbInSeparateFolder.State = cbGrayed then
|
||||
begin
|
||||
with Operation as TArchiveCopyOutOperation do
|
||||
ExtractFlags:= ExtractFlags + [efSmartExtract];
|
||||
end;
|
||||
|
||||
if ArchiveFileSource.IsInterface(IMultiArchiveFileSource) then
|
||||
begin
|
||||
with Operation as TMultiArchiveCopyOutOperation do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue