UI: Don't clip meters when resizing with no input

This commit is contained in:
Matt Gajownik 2020-03-21 23:25:23 +11:00
parent f44bfc23a3
commit 962ac4abbc

View File

@ -875,7 +875,7 @@ void VolumeMeter::paintHMeter(QPainter &painter, int x, int y, int width,
painter.fillRect(peakPosition, y,
maximumPosition - peakPosition, height,
backgroundErrorColor);
} else {
} else if (int(magnitude) != 0) {
if (!clipping) {
QTimer::singleShot(CLIP_FLASH_DURATION_MS, this,
SLOT(ClipEnding()));