Process the position changes event

This commit is contained in:
Anas Elgarhy 2023-02-14 19:05:37 +02:00
parent 28a179273d
commit 3c37bcf9fb
No known key found for this signature in database
GPG Key ID: 0501802A1D496528
1 changed files with 2 additions and 0 deletions

View File

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