Explorar o código

Only toggle the status label visibility if no animation is already pending

Fixes flickering especially when changing brightness.

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
David Fuhrmann %!s(int64=11) %!d(string=hai) anos
pai
achega
f1a0e30c50
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Sources/VLCStatusLabel.m

+ 2 - 1
Sources/VLCStatusLabel.m

@@ -28,10 +28,11 @@
     [self setFrame:selfFrame];
 
     [self setNeedsDisplay];
-    [self _toggleVisibility:NO];
 
     if (_displayTimer)
         [_displayTimer invalidate];
+    else
+        [self _toggleVisibility:NO];
 
     _displayTimer = [NSTimer scheduledTimerWithTimeInterval:1.5
                                                      target:self