UI: Fix error color at clipping is not displayed on horizontal meter

This commit is contained in:
Norihiro Kamae
2024-08-28 16:27:51 +09:00
committed by Ryan Foster
parent 1dc87caea4
commit 6fed2c2bdd
+1 -1
View File
@@ -1249,7 +1249,7 @@ void VolumeMeter::paintHMeter(QPainter &painter, int x, int y, int width,
maximumPosition - peakPosition, height,
muted ? backgroundErrorColorDisabled
: backgroundErrorColor);
} else if (int(magnitude) != 0) {
} else {
if (!clipping) {
QTimer::singleShot(CLIP_FLASH_DURATION_MS, this,
[&]() { clipping = false; });