Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@IBOutlet private weak var saveButton: NSButton!
@IBOutlet private weak var deleteButton: NSButton!
+ var dataSource: ShareTableViewDataSource?
var controller: ShareController? {
didSet {
cancellable?.cancel()
label: label,
hideDownload: hideDownload
)
+ await dataSource?.reload()
}
}
}
}
}
- private func reload() async {
+ func reload() async {
guard let itemURL = itemURL else { return }
guard let itemIdentifier = await withCheckedContinuation({
(continuation: CheckedContinuation<NSFileProviderItemIdentifier?, Never>) -> Void in
shareDataSource.uiDelegate = self
shareDataSource.sharesTableView = tableView
shareDataSource.loadItem(url: itemUrl)
+ optionsView.dataSource = shareDataSource
} catch let error {
let errorString = "Error processing item: \(error)"
Logger.shareViewController.error("\(errorString)")