Process the position changes event
This commit is contained in:
parent
28a179273d
commit
3c37bcf9fb
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@ impl CmusQueryResponse {
|
|||
if track != other_track {
|
||||
if track.status != other_track.status {
|
||||
events.push(CmusEvent::StatusChanged(other_track.status));
|
||||
} else if track.position != other_track.position {
|
||||
events.push(CmusEvent::PositionChanged(other_track.position));
|
||||
} else {
|
||||
events.push(CmusEvent::TrackChanged(other_track));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue