aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-19 03:25:38 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-18 22:13:27 -0600
commite6f7b7e01eeb685bfebdb4d5934f88304a738402 (patch)
treeb172bff84a26bd9455b5627d9691f72e461677a7
parentiOS: Consolidate all showConfirmationAlert()s into one place (diff)
downloadwireguard-apple-e6f7b7e01eeb685bfebdb4d5934f88304a738402.tar.xz
wireguard-apple-e6f7b7e01eeb685bfebdb4d5934f88304a738402.zip
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.
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
index f922f61..167aa0a 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift
@@ -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