Преглед на файлове

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)