From 06126c6f396f3e688f35a3af94569102db9ca87b Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 6 Mar 2024 20:07:24 +0800 Subject: [PATCH] Add additional options to share controller creation method Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareController.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareController.swift index a6f8d3def..ba2666f8b 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareController.swift @@ -34,7 +34,11 @@ class ShareController: ObservableObject { if shareType == .publicLink { kit.createShareLink( path: itemServerRelativePath, - publicUpload: publicUpload + hideDownload: hideDownload, + publicUpload: publicUpload, + password: password, + permissions: permissions, + options: options ) { account, share, data, error in defer { continuation.resume(returning: error) } guard error == .success else { @@ -54,7 +58,11 @@ class ShareController: ObservableObject { kit.createShare( path: itemServerRelativePath, shareType: shareType.rawValue, - shareWith: shareWith + shareWith: shareWith, + password: password, + permissions: permissions, + options: options, + attributes: attributes ) { account, share, data, error in defer { continuation.resume(returning: error) } guard error == .success else { -- 2.30.2