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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
fc163fc9ff
commit
f93f9d62f4
|
@ -19,7 +19,6 @@ class TunnelsListTableViewController: NSViewController {
|
||||||
tableView.headerView = nil
|
tableView.headerView = nil
|
||||||
tableView.rowSizeStyle = .medium
|
tableView.rowSizeStyle = .medium
|
||||||
tableView.allowsMultipleSelection = true
|
tableView.allowsMultipleSelection = true
|
||||||
tableView.allowsEmptySelection = false
|
|
||||||
return tableView
|
return tableView
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -84,6 +83,7 @@ class TunnelsListTableViewController: NSViewController {
|
||||||
if !isSelected {
|
if !isSelected {
|
||||||
delegate?.tunnelsListEmpty()
|
delegate?.tunnelsListEmpty()
|
||||||
}
|
}
|
||||||
|
tableView.allowsEmptySelection = false
|
||||||
|
|
||||||
let scrollView = NSScrollView()
|
let scrollView = NSScrollView()
|
||||||
scrollView.hasVerticalScroller = true
|
scrollView.hasVerticalScroller = true
|
||||||
|
|
Loading…
Reference in New Issue