From 79e3d5712d60a1994ae59cdef4f304fba3915617 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 21 Feb 2019 08:14:00 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Persephone/AppDelegate.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Persephone/AppDelegate.swift b/Persephone/AppDelegate.swift index 863806b..6a52a54 100644 --- a/Persephone/AppDelegate.swift +++ b/Persephone/AppDelegate.swift @@ -27,7 +27,12 @@ class AppDelegate: NSObject, NSApplicationDelegate { disconnect() } - override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) { + override func observeValue( + forKeyPath keyPath: String?, + of object: Any?, + change: [NSKeyValueChangeKey : Any]?, + context: UnsafeMutableRawPointer? + ) { switch keyPath { case "mpdHost", "mpdPort": disconnect()