mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +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>
|
<key>NSExtensionFileProviderActionName</key>
|
||||||
<string>Unlock file</string>
|
<string>Unlock file</string>
|
||||||
<key>NSExtensionFileProviderActionActivationRule</key>
|
<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>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionFileProviderActionActivationRule</key>
|
<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>
|
<key>NSExtensionFileProviderActionName</key>
|
||||||
<string>Lock file</string>
|
<string>Lock file</string>
|
||||||
<key>NSExtensionFileProviderActionIdentifier</key>
|
<key>NSExtensionFileProviderActionIdentifier</key>
|
||||||
|
|
Loading…
Reference in a new issue