-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mpris): missing PropertyChanged
signal for volume
#1368
Conversation
Two little gotchas with this PR:
I also didn't use |
159b5b3
to
c6265be
Compare
I changed the names of the commands and prevented the duplicate message when updating the volume through the MPRIS interface. I will work on the events vs state in another PR to not make this one too big. Before touching the configuration stuff I would really like to add tests to that module because I'm scared to break people's configs if I start changing related types. `dbus-monitor` output with this PR applied
Let me know if this PR is ok or you want to solve it in a different way 🙂 |
Send a `PropertyChanged` signal for the MPRIS volume when the volume changes inside `ncspot`.
c6265be
to
4114a23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM. I was wondering if there's a way to reduce some of the #[cfg]
conditionals, but I don't see how. Let's get it in! :)
You don't want to know how much I've thought about this as well. It's hard to get right because there are too many combinations and also because any code that isn't used causes clippy warnings which in turn cause CI to fail. The only solution I can see is to use cross-platform libraries which makes the conditional stuff "someone else's problem" 😄 |
When the volume is changed from inside
ncspot
, also send aPropertyChanged
signal.Describe your changes
PropertyChanged
signal every time the volume is changed insideSpotify
update()
command on theMprisManager
more general with different signalsIssue ticket number and link
closes #1328
Checklist before requesting a review
not performance improvements, etc.)