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