зеркало из https://github.com/nextcloud/desktop.git
Fix NSExtensionFileProviderActionActivationRules for locking menu items
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
19c9c199a6
Коммит
419035c275
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче