Skip to content

✨ Force drag-and-drop files to sync to remote download directory#3843

Merged
guiyanakuang merged 1 commit intomainfrom
feat/issue-3842-drag-drop-sync-to-download
Feb 13, 2026
Merged

✨ Force drag-and-drop files to sync to remote download directory#3843
guiyanakuang merged 1 commit intomainfrom
feat/issue-3842-drag-drop-sync-to-download

Conversation

@guiyanakuang
Copy link
Copy Markdown
Member

Closes #3842

Summary

  • Add SYNC_TO_DOWNLOAD flag in PasteItem's extraInfo to mark drag-and-drop files for download directory sync
  • Thread dragAndDrop context from DragTargetContentView through TransferableConsumerPasteCollector
  • Stamp the flag on PasteFiles items in PasteCollector.completeCollect() when drag-and-drop is true
  • Check the flag in PasteDao.releaseRemotePasteData() to force download directory placement regardless of file size
  • Fix FilesToImagesPlugin to preserve extraInfo when converting FilesPasteItem to ImagesPasteItem

Test plan

  • Drag files onto main window → verify SYNC_TO_DOWNLOAD flag is set in extraInfo
  • Sync drag-dropped files to remote device → verify files land in download directory regardless of size
  • Drag image files onto main window → verify flag persists through FilesToImagesPlugin conversion
  • Copy files via clipboard (not drag-drop) → verify normal sync behavior (no flag set)
  • Verify backward compatibility: older remote devices ignore unknown extraInfo keys gracefully

🤖 Generated with Claude Code

@guiyanakuang guiyanakuang force-pushed the feat/issue-3842-drag-drop-sync-to-download branch 2 times, most recently from fd63b1a to 767249a Compare February 13, 2026 12:01
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@guiyanakuang guiyanakuang force-pushed the feat/issue-3842-drag-drop-sync-to-download branch 2 times, most recently from 792f488 to 676f988 Compare February 13, 2026 12:23
@guiyanakuang guiyanakuang merged commit c0df7ba into main Feb 13, 2026
2 checks passed
@guiyanakuang guiyanakuang deleted the feat/issue-3842-drag-drop-sync-to-download branch February 13, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Force drag-and-drop files to sync to remote download directory

1 participant