diff --git a/src/cmus/events.rs b/src/cmus/events.rs index 5a57751..7407091 100644 --- a/src/cmus/events.rs +++ b/src/cmus/events.rs @@ -3,7 +3,7 @@ use crate::cmus::{Track, TrackStatus}; #[derive(Debug)] pub enum CmusEvent { - StatusChanged(TrackStatus), + StatusChanged(TrackStatus, Track), TrackChanged(Track), VolumeChanged { left: u8, right: u8 }, PositionChanged(u32), diff --git a/src/cmus/query.rs b/src/cmus/query.rs index ec6cba7..9a518f2 100644 --- a/src/cmus/query.rs +++ b/src/cmus/query.rs @@ -73,7 +73,7 @@ impl CmusQueryResponse { "Status changed: {:?} -> {:?}", other_track.status, track.status ); - events.push(CmusEvent::StatusChanged(other_track.status)); + events.push(CmusEvent::StatusChanged(other_track.status, track)); } else if track.position != other_track.position { #[cfg(feature = "debug")] debug!(