From: Jason A. Donenfeld Date: Tue, 19 Mar 2019 02:25:38 +0000 (+0100) Subject: macos: TunnelsList: set allowsEmptySelection after making initial selection X-Git-Tag: 0.0.20190319-1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f93f9d62f4df4fcd1af40c2821c485084db4e8a9;p=thirdparty%2Fwireguard-apple.git 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 --- 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