mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 12:35:52 +03:00
Fix NSExtensionFileProviderActionActivationRules for locking menu items
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
19c9c199a6
commit
419035c275
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue