mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: SyncDirs — preserve symlink follow/skip choice across file batches (#2887)
When TreeBuilder.BuildFromFiles() runs and the user answers 'follow all' or 'skip all', the choice is stored in TreeBuilder.FSymLinkOption. But after FreeAndNil(TreeBuilder) the choice was lost, so each new batch of files started fresh with gOperationOptionSymLinks (default: ask), and the dialog re-appeared for every symlink in every subsequent batch. Fix: write back TreeBuilder.SymLinkOption to Self.SymLinkOption before freeing the builder so the answer carries forward. Co-authored-by: heredie <heredie@localhost>
This commit is contained in:
parent
246f410673
commit
59607049b2
1 changed files with 1 additions and 0 deletions
|
|
@ -160,6 +160,7 @@ begin
|
|||
TreeBuilder.ExcludeEmptyTemplateDirectories := Self.ExcludeEmptyTemplateDirectories;
|
||||
|
||||
TreeBuilder.BuildFromFiles(SourceFiles);
|
||||
Self.SymLinkOption := TreeBuilder.SymLinkOption;
|
||||
FSourceFilesTree := TreeBuilder.ReleaseTree;
|
||||
FStatistics.TotalFiles := TreeBuilder.FilesCount;
|
||||
FStatistics.TotalBytes := TreeBuilder.FilesSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue