From 331a76195b906832210c3d1529f33a264d3ea8f6 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 27 Feb 2024 23:56:18 +0800 Subject: [PATCH] Register shareItemView nib in shareTableView Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareTableViewDataSource.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift index e02377ffe..d5a1b2163 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift @@ -12,8 +12,11 @@ import OSLog class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDelegate { private let shareItemViewIdentifier = NSUserInterfaceItemIdentifier("ShareTableItemView") + private let shareItemViewNib = NSNib(nibNamed: "ShareTableItemView", bundle: nil) + var sharesTableView: NSTableView? { didSet { + sharesTableView?.register(shareItemViewNib, forIdentifier: shareItemViewIdentifier) sharesTableView?.dataSource = self sharesTableView?.reloadData() }