1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 04:53:27 +00:00

fix bug when quickly toggling the advanced bar

This commit is contained in:
Mitchell Livingston 2008-01-16 16:39:18 +00:00
parent 756bacd076
commit 875b98145f

View file

@ -558,10 +558,13 @@
{ {
[self resizePiecesBarIncrement]; [self resizePiecesBarIncrement];
fPiecesBarTimer = [NSTimer scheduledTimerWithTimeInterval: PIECE_TIME target: self if (!fPiecesBarTimer)
selector: @selector(resizePiecesBarIncrement) userInfo: nil repeats: YES]; {
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSModalPanelRunLoopMode]; fPiecesBarTimer = [NSTimer scheduledTimerWithTimeInterval: PIECE_TIME target: self
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSEventTrackingRunLoopMode]; selector: @selector(resizePiecesBarIncrement) userInfo: nil repeats: YES];
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSModalPanelRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSEventTrackingRunLoopMode];
}
} }
@end @end