aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-17 14:03:59 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-17 14:03:59 +0530
commit98775bf8a0427f74a2ef9fda41c4eaff33d02cd0 (patch)
tree89a3d3113c82ae7610a03de7ababa9a6add194c1
parentmacOS: Manage tunnels: Make keyboard shortcuts discoverable (diff)
downloadwireguard-apple-98775bf8a0427f74a2ef9fda41c4eaff33d02cd0.tar.xz
wireguard-apple-98775bf8a0427f74a2ef9fda41c4eaff33d02cd0.zip
macOS: Application: Fix comment
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/Application.swift4
1 files changed, 1 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/Application.swift b/WireGuard/WireGuard/UI/macOS/Application.swift
index 644bbab..5305f2a 100644
--- a/WireGuard/WireGuard/UI/macOS/Application.swift
+++ b/WireGuard/WireGuard/UI/macOS/Application.swift
@@ -19,12 +19,10 @@ class Application: NSApplication {
private var appDelegate: AppDelegate? //swiftlint:disable:this weak_delegate
- // We use a custom Application class to be able to set the app delegate
- // before app.run() gets called in NSApplicationMain().
override init() {
super.init()
appDelegate = AppDelegate() // Keep a strong reference to the app delegate
- delegate = appDelegate
+ delegate = appDelegate // Set delegate before app.run() gets called in NSApplicationMain()
}
required init?(coder: NSCoder) {