]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: Application: Fix comment
authorRoopesh Chander <roop@roopc.net>
Thu, 17 Jan 2019 08:33:59 +0000 (14:03 +0530)
committerRoopesh Chander <roop@roopc.net>
Thu, 17 Jan 2019 08:33:59 +0000 (14:03 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/macOS/Application.swift

index 644bbabd86ef889a367640c08a53134171c8c4f1..5305f2a60c78263fd18cafc64c607c5099485c90 100644 (file)
@@ -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) {