Cange the StatusChanged to accsept a track instance
This commit is contained in:
parent
d81eeb8baf
commit
e7b9bfba9e
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue