Fix NSExtensionFileProviderActionActivationRules for locking menu items

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-08-01 15:34:35 +08:00 committed by Matthieu Gallien
parent ec8b65c248
commit 820fbbd3c3

View file

@ -18,11 +18,11 @@
<key>NSExtensionFileProviderActionName</key>
<string>Unlock file</string>
<key>NSExtensionFileProviderActionActivationRule</key>
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.&quot;isUnlockable&quot; == YES ).@count &gt; 0</string>
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.locked != nil &amp;&amp; !($fileproviderItem.contentType.identifier UTI-CONFORMS-TO &quot;public.folder&quot;) ).@count &gt; 0</string>
</dict>
<dict>
<key>NSExtensionFileProviderActionActivationRule</key>
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.&quot;isLockable&quot; == YES ).@count &gt; 0</string>
<string>SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.locked == nil &amp;&amp; !($fileproviderItem.contentType.identifier UTI-CONFORMS-TO &quot;public.folder&quot;) ).@count &gt; 0</string>
<key>NSExtensionFileProviderActionName</key>
<string>Lock file</string>
<key>NSExtensionFileProviderActionIdentifier</key>