macOS: Ensure status is up-to-date on startup

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-01-24 16:51:01 +05:30
parent 812e660491
commit c36a9e4ffd

View File

@ -10,8 +10,16 @@ import Cocoa
class TunnelsTracker { class TunnelsTracker {
weak var statusMenu: StatusMenu? weak var statusMenu: StatusMenu? {
weak var statusItemController: StatusItemController? didSet {
statusMenu?.currentTunnel = currentTunnel
}
}
weak var statusItemController: StatusItemController? {
didSet {
statusItemController?.currentTunnel = currentTunnel
}
}
weak var manageTunnelsRootVC: ManageTunnelsRootViewController? weak var manageTunnelsRootVC: ManageTunnelsRootViewController?
private var tunnelsManager: TunnelsManager private var tunnelsManager: TunnelsManager