mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
ADD: Feature [0001009] Deleting feature in the synchronize directories window (experimental) #2
This commit is contained in:
parent
42f63c38f4
commit
c184f866ff
1 changed files with 9 additions and 4 deletions
|
|
@ -1485,19 +1485,24 @@ begin
|
|||
Message:= EmptyStr;
|
||||
UpdateList(ALeftList, ARightList, False, False);
|
||||
|
||||
if ALeft and (ALeftList.Count > 0) then
|
||||
ALeft:= ALeft and (ALeftList.Count > 0);
|
||||
ARight:= ARight and (ARightList.Count > 0);
|
||||
|
||||
if (ALeft = False) and (ARight = False) then Exit;
|
||||
|
||||
if ALeft then
|
||||
Message:= Format(rsVarLeftPanel + ': ' + rsMsgDelFlDr, [ALeftList.Count]) + LineEnding;
|
||||
|
||||
if ARight and (ARightList.Count > 0) then
|
||||
if ARight then
|
||||
Message+= Format(rsVarRightPanel + ': ' + rsMsgDelFlDr, [ARightList.Count]) + LineEnding;
|
||||
|
||||
if MessageDlg(Message, mtWarning, [mbYes, mbNo], 0, mbYes) = mrYes then
|
||||
begin
|
||||
ALeft:= ALeft and (ALeftList.Count > 0);
|
||||
ARight:= ARight and (ARightList.Count > 0);
|
||||
EnableControls(False);
|
||||
if ALeft then DeleteFiles(FCmpFileSourceL, ALeftList);
|
||||
if ARight then DeleteFiles(FCmpFileSourceR, ARightList);
|
||||
UpdateList(nil, nil, ALeft, ARight);
|
||||
EnableControls(True);
|
||||
end;
|
||||
finally
|
||||
ALeftList.Free;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue