diff --git a/CHANGELOG.md b/CHANGELOG.md index 46da764..9d80f2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - An unlikely crash when the UNIX IPC socket is removed before `ncspot` is closed - Guaranteed crash while quiting `ncspot` when using MPRIS - MPRIS volume not being updated when given numbers smaller than 0 or larger than 1 +- Allow previous track via MPRIS if first track in queue is playing ## [0.13.4] - 2023-07-24 diff --git a/src/mpris.rs b/src/mpris.rs index 2a192d2..151ab0e 100644 --- a/src/mpris.rs +++ b/src/mpris.rs @@ -289,7 +289,7 @@ impl MprisPlayer { #[dbus_interface(property)] fn can_go_previous(&self) -> bool { - self.queue.previous_index().is_some() + self.queue.get_current().is_some() } #[dbus_interface(property)]