macos: TunnelsList: set allowsEmptySelection after making initial selection
Otherwise we never get the event that the selection changed, so we don't wind up showing anything in the details pane.
This commit is contained in:
parent
4eeb4696f8
commit
e6f7b7e01e
|
@ -19,7 +19,6 @@ class TunnelsListTableViewController: NSViewController {
|
|||
tableView.headerView = nil
|
||||
tableView.rowSizeStyle = .medium
|
||||
tableView.allowsMultipleSelection = true
|
||||
tableView.allowsEmptySelection = false
|
||||
return tableView
|
||||
}()
|
||||
|
||||
|
@ -84,6 +83,7 @@ class TunnelsListTableViewController: NSViewController {
|
|||
if !isSelected {
|
||||
delegate?.tunnelsListEmpty()
|
||||
}
|
||||
tableView.allowsEmptySelection = false
|
||||
|
||||
let scrollView = NSScrollView()
|
||||
scrollView.hasVerticalScroller = true
|
||||
|
|
Loading…
Reference in New Issue