fix(mpris): missing PropertyChanged signal for volume

fix(mpris): missing PropertyChanged signal for volume

Send a `PropertyChanged` signal for the MPRIS volume when the volume
changes inside `ncspot`.
This commit is contained in:
Thomas Frans
2024-02-19 22:46:00 +01:00
committed by GitHub
parent 5e916fd7ec
commit 5b4a17597d
6 changed files with 65 additions and 19 deletions

View File

@@ -196,7 +196,7 @@ impl CommandManager {
.spotify
.volume()
.saturating_add(VOLUME_PERCENT * amount);
self.spotify.set_volume(volume);
self.spotify.set_volume(volume, true);
Ok(None)
}
Command::VolumeDown(amount) => {
@@ -205,7 +205,7 @@ impl CommandManager {
.volume()
.saturating_sub(VOLUME_PERCENT * amount);
debug!("vol {}", volume);
self.spotify.set_volume(volume);
self.spotify.set_volume(volume, true);
Ok(None)
}
Command::Help => {