Skip to content

Delete stored clipboard images when clearing history#1

Open
sickn33 wants to merge 1 commit into
chenyuxiaojin:mainfrom
sickn33:fix-clear-clipboard-images
Open

Delete stored clipboard images when clearing history#1
sickn33 wants to merge 1 commit into
chenyuxiaojin:mainfrom
sickn33:fix-clear-clipboard-images

Conversation

@sickn33

@sickn33 sickn33 commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • delete generated clipboard image files when image history items are removed
  • make Clear All remove both referenced and orphaned files from ClipboardImages
  • add a regression test using isolated temporary clipboard storage

Why

Clear All previously emptied the in-memory/history list but could leave generated clipboard images on disk until opportunistic orphan cleanup ran later. That is surprising for a destructive privacy action.

Tests

  • xcodebuild test -project DropKit/DropKit.xcodeproj -scheme DropKit -destination 'platform=macOS' -derivedDataPath /private/tmp/dropkit-contrib-derived CODE_SIGNING_ALLOWED=NO

@sickn33 sickn33 force-pushed the fix-clear-clipboard-images branch 2 times, most recently from 0064258 to 27eb8a9 Compare June 29, 2026 15:47
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.

2 participants