1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Tiny clean up

This commit is contained in:
Daniel Barber 2021-03-13 14:35:39 -05:00
parent a0f1942ba8
commit 1135a96f38
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@ class AppDelegate: NSObject,
_ = App.userNotificationsController
_ = App.mediaInfoController
_ = App.playerStateInfoController
_ = App.mpdServerController
}

View File

@ -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}