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

Fix playing song not getting updated when moving a track

This commit is contained in:
Daniel Barber 2019-06-15 18:40:12 -04:00
parent 95323e8a6f
commit 2ff2e1c96f
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -37,7 +37,12 @@ extension MPDClient {
}
if mpdIdle.contains(.queue) {
self.fetchQueue()
self.fetchStatus()
self.delegate?.didUpdateQueue(mpdClient: self, queue: self.queue)
if let status = self.status {
self.delegate?.didUpdateQueuePos(mpdClient: self, song: status.song)
}
}
if mpdIdle.contains(.player) || mpdIdle.contains(.options) {
self.fetchStatus()