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 коммит произвёл Matthieu Gallien
Родитель 19c9c199a6
Коммит 419035c275
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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>