Browse Source

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

Matt Gajownik 5 năm trước cách đây
mục cha
commit
962ac4abbc
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      UI/volume-control.cpp

+ 1 - 1
UI/volume-control.cpp

@@ -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()));