소스 검색

status label: fix flickering (close #10271)

Felix Paul Kühne 11 년 전
부모
커밋
3e014f76f3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      Sources/VLCStatusLabel.m

+ 3 - 0
Sources/VLCStatusLabel.m

@@ -30,6 +30,9 @@
     [self setNeedsDisplay];
     [self _toggleVisibility:NO];
 
+    if (_displayTimer)
+        [_displayTimer invalidate];
+
     _displayTimer = [NSTimer scheduledTimerWithTimeInterval:1.5
                                                      target:self
                                                    selector:@selector(_hideAgain)