|
|
@@ -9,7 +9,7 @@ import Foundation
|
|
|
import UIKit
|
|
|
//import sys/utsname.h
|
|
|
|
|
|
-class EntryGateController: UIViewController, RoutePickerAgent {
|
|
|
+class EntryGateController: UIViewController, RoutePickerDelegate {
|
|
|
|
|
|
// MARK: - API Endpoints
|
|
|
private let pathGetRoutes = "/ditch/list"
|
|
|
@@ -576,12 +576,12 @@ class EntryGateController: UIViewController, RoutePickerAgent {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // MARK: - RoutePickerAgent
|
|
|
+ // MARK: - RoutePickerDelegate
|
|
|
func routePicker(_ panel: RoutePickerView, didPick channel: Channel) {
|
|
|
selectedChannel = channel
|
|
|
refreshChannelTitle()
|
|
|
|
|
|
- view.removeFromSuperview()
|
|
|
+ panel.removeFromSuperview()
|
|
|
routePopup = nil
|
|
|
|
|
|
print("[Channel] Selected channel: \(channel.name) (id=\(channel.id))")
|