diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index d84c089..39bc86f 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -42,7 +42,6 @@ class AppDelegate: NSObject, _ = App.userNotificationsController _ = App.mediaInfoController _ = App.playerStateInfoController - _ = App.mpdServerController } diff --git a/Mac/Components/Shared/MediaInfoController.swift b/Mac/Components/Shared/MediaInfoController.swift index b1c1fe2..882923f 100644 --- a/Mac/Components/Shared/MediaInfoController.swift +++ b/Mac/Components/Shared/MediaInfoController.swift @@ -37,7 +37,8 @@ class MediaInfoController { ] as [String : Any] if let elapsedTime = App.store.state.playerState.elapsedTimeMs { - nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = NSNumber(value: elapsedTime / 1000) + nowPlayingInfo[MPNowPlayingInfoPropertyElapsedPlaybackTime] = + NSNumber(value: elapsedTime / 1000) } if #available(OSX 10.13.2, *) { @@ -67,7 +68,6 @@ class MediaInfoController { extension MediaInfoController: StoreSubscriber { typealias StoreSubscriberStateType = Song? - func newState(state: StoreSubscriberStateType) { guard let song = state else {return}