mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: support fsoPack in TStashFileSourceProcessor
This commit is contained in:
parent
53f9c3c42f
commit
7db7e41489
1 changed files with 17 additions and 2 deletions
|
|
@ -25,6 +25,7 @@ type
|
|||
private
|
||||
procedure consultCopyOperation( var params: TFileSourceConsultParams );
|
||||
procedure consultMoveOperation( var params: TFileSourceConsultParams );
|
||||
procedure consultPackOperation( var params: TFileSourceConsultParams );
|
||||
public
|
||||
procedure consultOperation( var params: TFileSourceConsultParams ); override;
|
||||
procedure confirmOperation(var params: TFileSourceConsultParams); override;
|
||||
|
|
@ -151,6 +152,14 @@ begin
|
|||
params.consultResult:= fscrSuccess;
|
||||
end;
|
||||
|
||||
procedure TStashFileSourceProcessor.consultPackOperation(
|
||||
var params: TFileSourceConsultParams);
|
||||
begin
|
||||
if params.phase=TFileSourceConsultPhase.target then
|
||||
Exit;
|
||||
Inherited consultOperation( params );
|
||||
end;
|
||||
|
||||
procedure TStashFileSourceProcessor.consultOperation(
|
||||
var params: TFileSourceConsultParams);
|
||||
begin
|
||||
|
|
@ -166,8 +175,10 @@ begin
|
|||
case params.operationType of
|
||||
fsoCopy:
|
||||
self.consultCopyOperation( params );
|
||||
else
|
||||
fsoMove:
|
||||
self.consultMoveOperation( params );
|
||||
fsoPack:
|
||||
self.consultPackOperation( params );
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
@ -180,7 +191,11 @@ begin
|
|||
params.files.setPathBaseOnAllFiles;
|
||||
params.handled:= True;
|
||||
end;
|
||||
end
|
||||
end;
|
||||
fsoPack: begin
|
||||
params.files.setPathBaseOnAllFiles;
|
||||
params.handled:= True;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue