aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-24 16:51:01 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-24 16:51:01 +0530
commitc36a9e4ffd1a93bd669b168d147aad291c07b14b (patch)
treecdfb7de09cf26f0206f198bb8aa1b782d6c4df3c /WireGuard/WireGuard/UI/macOS
parentConfig file parsing: Fix bug when there are comments at the end (diff)
downloadwireguard-apple-c36a9e4ffd1a93bd669b168d147aad291c07b14b.tar.xz
wireguard-apple-c36a9e4ffd1a93bd669b168d147aad291c07b14b.zip
macOS: Ensure status is up-to-date on startup
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS')
-rw-r--r--WireGuard/WireGuard/UI/macOS/TunnelsTracker.swift12
1 files changed, 10 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/TunnelsTracker.swift b/WireGuard/WireGuard/UI/macOS/TunnelsTracker.swift
index 9c931869..8df7789f 100644
--- a/WireGuard/WireGuard/UI/macOS/TunnelsTracker.swift
+++ b/WireGuard/WireGuard/UI/macOS/TunnelsTracker.swift
@@ -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