macOS: On adding the first tunnel, select it
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
cb778fe7e0
commit
c72f7056b3
|
@ -229,6 +229,9 @@ class TunnelsListTableViewController: NSViewController {
|
|||
extension TunnelsListTableViewController {
|
||||
func tunnelAdded(at index: Int) {
|
||||
tableView.insertRows(at: IndexSet(integer: index), withAnimation: .slideLeft)
|
||||
if tunnelsManager.numberOfTunnels() == 1 {
|
||||
selectTunnel(at: 0)
|
||||
}
|
||||
}
|
||||
|
||||
func tunnelModified(at index: Int) {
|
||||
|
|
Loading…
Reference in New Issue