From: Claudio Cambra Date: Tue, 16 Apr 2024 10:22:53 +0000 (+0800) Subject: Correctly set up NCKit instance with account string X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~45^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2c006757dd5009d84f9b6e8a87657bfd44668f61;p=nextcloud-desktop.git Correctly set up NCKit instance with account string Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift index 3d2f30a54..32302fea5 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension+ClientInterface.swift @@ -94,10 +94,11 @@ extension FileProviderExtension: NSFileProviderServicing { guard newNcAccount != ncAccount else { return } ncAccount = newNcAccount ncKit.setup( - user: ncAccount!.username, - userId: ncAccount!.username, - password: ncAccount!.password, - urlBase: ncAccount!.serverUrl, + account: newNcAccount.ncKitAccount, + user: newNcAccount.username, + userId: newNcAccount.username, + password: newNcAccount.password, + urlBase: newNcAccount.serverUrl, userAgent: "Nextcloud-macOS/FileProviderExt", nextcloudVersion: 25, delegate: nil) // TODO: add delegate methods for self