Commit 8a9d62a1 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Volume Monitor] Don't emit volumeChanged when it didn't change

parent 3e80ee13
......@@ -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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment