From edabd042e4a55d2ce7303f4b669467fda4aba5bc Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Sat, 17 Feb 2018 15:17:05 +0000 Subject: [PATCH] Include updating context_uri along with tracks and current index. This allows remote clients to show the green now-playing indication (#57). --- connect/src/spirc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connect/src/spirc.rs b/connect/src/spirc.rs index 2b88249c..e6c6c059 100644 --- a/connect/src/spirc.rs +++ b/connect/src/spirc.rs @@ -628,9 +628,11 @@ impl SpircTask { fn update_tracks(&mut self, frame: &protocol::spirc::Frame) { let index = frame.get_state().get_playing_track_index(); let tracks = frame.get_state().get_track(); + let context_uri = frame.get_state().get_context_uri().to_owned(); self.state.set_playing_track_index(index); self.state.set_track(tracks.into_iter().cloned().collect()); + self.state.set_context_uri(context_uri); } fn load_track(&mut self, play: bool) {