Skip to content

Commit cdcb255

Browse files
authored
Merge pull request #76 from claucambra/bugfix/do-not-evict-keep-downloaded
Do not try to evict an item on disabling keep downloaded
2 parents 8b4f960 + 3a95a66 commit cdcb255

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Sources/NextcloudFileProviderKit/Item/Item+KeepDownloaded.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public extension Item {
3131
if #available(macOS 13.0, iOS 16.0, visionOS 1.0, *) {
3232
if keepDownloaded && !isDownloaded {
3333
try await manager.requestDownloadForItem(withIdentifier: itemIdentifier)
34-
} else if !keepDownloaded && isDownloaded {
35-
try await manager.evictItem(identifier: itemIdentifier)
3634
} else {
3735
try await manager.requestModification(
3836
of: [.lastUsedDate], forItemWithIdentifier: itemIdentifier

0 commit comments

Comments
 (0)