浏览代码

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 11 年之前
父节点
当前提交
f1a0e30c50
共有 1 个文件被更改,包括 2 次插入1 次删除
  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