Skip to content

Commit

Permalink
Allow trashing items
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
  • Loading branch information
claucambra committed Dec 13, 2024
1 parent b4586d2 commit d8caf23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/NextcloudFileProviderKit/Item/Item.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public class Item: NSObject, NSFileProviderItem {
.allowsReading,
.allowsDeleting,
.allowsReparenting,
.allowsRenaming
.allowsRenaming,
.allowsTrashing
]

if #available(macOS 11.3, *) {
Expand All @@ -64,7 +65,8 @@ public class Item: NSObject, NSFileProviderItem {
.allowsDeleting,
.allowsRenaming,
.allowsReparenting,
.allowsEvicting
.allowsEvicting,
.allowsTrashing
]
}

Expand Down

0 comments on commit d8caf23

Please sign in to comment.