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:
@@ -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
|
||||
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user