From 820fbbd3c3c5d16ea3e31bc9b4f9c85b65ee88c8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 1 Aug 2024 15:34:35 +0800 Subject: [PATCH] Fix NSExtensionFileProviderActionActivationRules for locking menu items Signed-off-by: Claudio Cambra --- .../MacOSX/NextcloudIntegration/FileProviderUIExt/Info.plist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Info.plist b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Info.plist index 3f843aaed..31930b762 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Info.plist +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/Info.plist @@ -18,11 +18,11 @@ NSExtensionFileProviderActionName Unlock file NSExtensionFileProviderActionActivationRule - SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo."isUnlockable" == YES ).@count > 0 + SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.locked != nil && !($fileproviderItem.contentType.identifier UTI-CONFORMS-TO "public.folder") ).@count > 0 NSExtensionFileProviderActionActivationRule - SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo."isLockable" == YES ).@count > 0 + SUBQUERY ( fileproviderItems, $fileproviderItem, $fileproviderItem.userInfo.locked == nil && !($fileproviderItem.contentType.identifier UTI-CONFORMS-TO "public.folder") ).@count > 0 NSExtensionFileProviderActionName Lock file NSExtensionFileProviderActionIdentifier