dont stop track

This commit is contained in:
Moshe Sherman
2020-08-26 12:09:27 +03:00
committed by Henrik Friedrichsen
parent 77e5de562d
commit 181f5e4918

View File

@@ -272,7 +272,12 @@ impl Queue {
if let Some(index) = self.previous_index() {
self.play(index, false, false);
} else {
self.spotify.stop();
let current = *self.current_track.read().unwrap();
if let Some(index) = current {
self.play(index, false, false);
} else {
self.spotify.stop();
}
}
}