mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Multiarc does not update the "Copying" dialog with "From" / "To" information on the start of the archive extraction (fixes #1606)
(cherry picked from commit 6fc5d04149)
This commit is contained in:
parent
f3ed1d8fc5
commit
330d51c101
1 changed files with 16 additions and 0 deletions
|
|
@ -284,6 +284,21 @@ begin
|
|||
|
||||
if FilesToExtract.Count = 0 then Exit;
|
||||
|
||||
with FStatistics do
|
||||
begin
|
||||
if FilesToExtract.Count = 1 then
|
||||
begin
|
||||
FStatistics.CurrentFileFrom:= FilesToExtract[0].FullPath;
|
||||
FStatistics.CurrentFileTo:= TargetFileName;
|
||||
end
|
||||
else begin
|
||||
FStatistics.CurrentFileFrom:= SourceFiles.Path;
|
||||
FStatistics.CurrentFileTo:= TargetPath;
|
||||
end;
|
||||
FStatistics.DoneBytes:= -1;
|
||||
UpdateStatistics(FStatistics);
|
||||
end;
|
||||
|
||||
sReadyCommand:= FormatArchiverCommand(
|
||||
MultiArcItem.FArchiver,
|
||||
sCommandLine,
|
||||
|
|
@ -307,6 +322,7 @@ begin
|
|||
// if extract from not root directory and with path
|
||||
if (SourceFiles.Path <> PathDelim) and (FExtractWithoutPath = False) then
|
||||
begin
|
||||
FStatistics.DoneBytes:= 0;
|
||||
// move files to real target directory
|
||||
for I:= 0 to FilesToExtract.Count - 1 do
|
||||
begin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue