DeviceVisualizer - don't check dirty unless necessary

This commit is contained in:
Diogo Trindade committed 2023-06-06 12:00:48 +01:00
1 parent 06e6075c4d
commit 567ca193a4
1 file changed
+1 -1
@@ -162,7 +162,7 @@ public class DeviceVisualizer : Control
private void TimerOnTick(object? sender, EventArgs e)
{
if (IsDirty() && ShowColors && IsVisible && Opacity > 0)
if (ShowColors && IsVisible && Opacity > 0 && IsDirty())
Update();
}