Skip to content

Commit

Permalink
UI: Fix error color at clipping is not displayed on horizontal meter
Browse files Browse the repository at this point in the history
  • Loading branch information
norihiro authored and RytoEX committed Sep 27, 2024
1 parent 1dc87ca commit 6fed2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/volume-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; });
Expand Down

0 comments on commit 6fed2c2

Please sign in to comment.