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:
Jason A. Donenfeld 2019-03-19 03:25:38 +01:00
parent 4eeb4696f8
commit e6f7b7e01e
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