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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user