StreamRestore: Don't write unnecessary changes

Authored by drosca on Apr 29 2017, 4:39 PM.

Description

StreamRestore: Don't write unnecessary changes

Applet updates mute state with every volume change - it does
writeChanges(volume) immediately following with writeChanges(mute)
and it seems to make PulseAudio to ignore the volume change.
This makes sure that writeChanges() is only called when something really
changed.

BUG: 367688
FIXED-IN: 5.10.0

Differential Revision: https://phabricator.kde.org/D5657

Details

Committed
droscaApr 29 2017, 9:00 PM
Differential Revision
D5657: StreamRestore: Don't write unnecessary changes
Parents
R994:67b31eff60d3: Merge branch 'Plasma/5.9'
Branches
Unknown
Tags
Unknown