Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma PulseAudio Applet
Commits
8a9d62a1
Commit
8a9d62a1
authored
Jan 12, 2021
by
Kai Uwe Broulik
🍇
Browse files
[Volume Monitor] Don't emit volumeChanged when it didn't change
parent
3e80ee13
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/volumemonitor.cpp
View file @
8a9d62a1
...
...
@@ -49,6 +49,11 @@ bool VolumeMonitor::isAvailable() const
void
VolumeMonitor
::
updateVolume
(
qreal
volume
)
{
// qFuzzyCompare cannot compare against 0.
if
(
qFuzzyCompare
(
1
+
m_volume
,
1
+
volume
))
{
return
;
}
m_volume
=
volume
;
Q_EMIT
volumeChanged
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment