mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Fix NSExtensionFileProviderActionActivationRules for locking menu items
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
ec8b65c248
commit
820fbbd3c3
@ -18,11 +18,11 @@
|
||||
<key>NSExtensionFileProviderActionName</key>
|
||||
<string>Unlock file</string>
|
||||
<key>NSExtensionFileProviderActionActivationRule</key>
|
||||
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo."isUnlockable" == YES ).@count > 0</string>
|
||||
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.locked != nil && !($fileproviderItem.contentType.identifier UTI-CONFORMS-TO "public.folder") ).@count > 0</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>NSExtensionFileProviderActionActivationRule</key>
|
||||
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo."isLockable" == YES ).@count > 0</string>
|
||||
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.locked == nil && !($fileproviderItem.contentType.identifier UTI-CONFORMS-TO "public.folder") ).@count > 0</string>
|
||||
<key>NSExtensionFileProviderActionName</key>
|
||||
<string>Lock file</string>
|
||||
<key>NSExtensionFileProviderActionIdentifier</key>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user