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:
Jason A. Donenfeld 2019-03-19 03:25:38 +01:00
parent fc163fc9ff
commit f93f9d62f4
1 changed files with 1 additions and 1 deletions

View File

@ -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