mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix(shell_integration/macOS/FileProviderUIExt): Retrieve and use FileProviderExt's user agent
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
a000dd60a7
commit
91b6882196
@ -95,6 +95,9 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele
|
||||
let connection = try await serviceConnection(url: itemURL, interruptionHandler: {
|
||||
Logger.sharesDataSource.error("Service connection interrupted")
|
||||
})
|
||||
if let acquiredUserAgent = await connection.userAgent() {
|
||||
userAgent = acquiredUserAgent as String
|
||||
}
|
||||
guard let serverPath = await connection.itemServerPath(identifier: itemIdentifier),
|
||||
let credentials = await connection.credentials() as? Dictionary<String, String>,
|
||||
let convertedAccount = Account(dictionary: credentials),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user