fix(mpris): can_go_previous should always be true (#1346)

* make can_go_previous always true

* can_go_previous whenever queue is non-empty

* docs: Update CHANGELOG

---------

Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
eulerfan271
2023-12-09 05:51:17 -05:00
committed by GitHub
parent 0a1a9bdd4d
commit a826115907
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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)]