mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Register shareItemView nib in shareTableView
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
8add57a048
commit
331a76195b
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue