Skip to content

Commit 3a95a66

Browse files
committed
Do not try to evict an item on disabling keep downloaded
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
1 parent 8b4f960 commit 3a95a66

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)