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
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