From: Claudio Cambra Date: Tue, 27 Feb 2024 12:29:07 +0000 (+0800) Subject: Instantiate share data source in share view controller X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~46^2~142 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0dd8c3166595bd097f69c4659b8ccb7c8546d734;p=nextcloud-desktop.git Instantiate share data source in share view controller Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.swift index fb5058ec9..d2d8fac63 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareViewController.swift @@ -11,6 +11,7 @@ import OSLog import QuickLookThumbnailing class ShareViewController: NSViewController { + let shareDataSource = ShareTableViewDataSource() let itemIdentifiers: [NSFileProviderItemIdentifier] @IBOutlet weak var fileNameIcon: NSImageView! @@ -58,6 +59,8 @@ class ShareViewController: NSViewController { do { let itemUrl = try await manager.getUserVisibleURL(for: itemIdentifier) await updateDisplay(itemUrl: itemUrl) + shareDataSource.sharesTableView = tableView + shareDataSource.loadItem(identifier: itemIdentifier, url: itemUrl) } catch let error { let errorString = "Error processing item: \(error)" Logger.shareViewController.error("\(errorString)")