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

View file

@ -52,6 +52,8 @@ impl CmusQueryResponse {
if track != other_track { if track != other_track {
if track.status != other_track.status { if track.status != other_track.status {
events.push(CmusEvent::StatusChanged(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 { } else {
events.push(CmusEvent::TrackChanged(other_track)); events.push(CmusEvent::TrackChanged(other_track));
} }