mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 07:32:54 +00:00
Closes #805. The SFTP file-list context menu's Download action only passed the right-clicked entry to the single-file handler, so selecting N files and hitting Download still downloaded only one — matching copy/move/ delete, which already iterate selectedFiles, this is the odd one out. Add onDownloadFiles through the SftpContext → pane callbacks → file- list chain. In the context menu, if the right-clicked row is part of pane.selectedFiles and the selection has >1 entry, fall into the new multi-file path; single selection stays on the existing handler so its save-dialog UX is unchanged. The new handleDownloadFilesForSide iterates local selections with the existing blob path (browser auto-saves each file). For remote panes it prompts for a target directory once via selectDirectory and streams every selected file into it — avoids the N-save-dialog prompt storm that a naive loop would trigger. Mirrors the existing directory- download branch. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>