mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: SyncDirs - move files to trash if enabled
This commit is contained in:
parent
cf7604d242
commit
6077b59828
1 changed files with 5 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ uses
|
|||
DCClassesUtf8, uFileSystemFileSource, uFileSourceOperationOptions, DCDateTimeUtils,
|
||||
uDCUtils, uFileSourceUtil, uFileSourceOperationTypes, uShowForm, uAdministrator,
|
||||
uOSUtils, uLng, uMasks, Math, uClipboard, IntegerList, fMaskInputDlg, uSearchTemplate,
|
||||
StrUtils, uTypes;
|
||||
StrUtils, uTypes, uFileSystemDeleteOperation;
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
|
|
@ -1707,6 +1707,10 @@ begin
|
|||
MessageDlg(rsMsgErrNotSupported, mtError, [mbOK], 0);
|
||||
Exit(False);
|
||||
end;
|
||||
if (FOperation is TFileSystemDeleteOperation) then
|
||||
begin
|
||||
TFileSystemDeleteOperation(FOperation).Recycle:= gUseTrash;
|
||||
end;
|
||||
FOperation.Elevate:= ElevateAction;
|
||||
FOperation.AddUserInterface(FFileSourceOperationMessageBoxesUI);
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue