1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00
This commit is contained in:
Daniel Barber 2019-02-21 08:14:00 -05:00
parent 794a1a5452
commit 79e3d5712d
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -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()