mirror of
https://github.com/danbee/persephone
synced 2025-03-04 08:39:11 +00:00
Tiny clean up
This commit is contained in:
parent
a0f1942ba8
commit
1135a96f38
@ -42,7 +42,6 @@ class AppDelegate: NSObject,
|
|||||||
_ = App.userNotificationsController
|
_ = App.userNotificationsController
|
||||||
_ = App.mediaInfoController
|
_ = App.mediaInfoController
|
||||||
_ = App.playerStateInfoController
|
_ = App.playerStateInfoController
|
||||||
|
|
||||||
_ = App.mpdServerController
|
_ = App.mpdServerController
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,8 @@ class MediaInfoController {
|
|||||||
] as [String : Any]
|
] as [String : Any]
|
||||||
|
|
||||||
if let elapsedTime = App.store.state.playerState.elapsedTimeMs {
|
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, *) {
|
if #available(OSX 10.13.2, *) {
|
||||||
@ -67,7 +68,6 @@ class MediaInfoController {
|
|||||||
extension MediaInfoController: StoreSubscriber {
|
extension MediaInfoController: StoreSubscriber {
|
||||||
typealias StoreSubscriberStateType = Song?
|
typealias StoreSubscriberStateType = Song?
|
||||||
|
|
||||||
|
|
||||||
func newState(state: StoreSubscriberStateType) {
|
func newState(state: StoreSubscriberStateType) {
|
||||||
guard let song = state else {return}
|
guard let song = state else {return}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user