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

This commit is contained in:
Roopesh Chander 2019-01-24 16:51:01 +05:30
parent e95cb6e6bd
commit 1e3be2a51e
1 changed files with 10 additions and 2 deletions

View File

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