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:
parent
756bacd076
commit
875b98145f
1 changed files with 7 additions and 4 deletions
|
@ -558,11 +558,14 @@
|
||||||
{
|
{
|
||||||
[self resizePiecesBarIncrement];
|
[self resizePiecesBarIncrement];
|
||||||
|
|
||||||
|
if (!fPiecesBarTimer)
|
||||||
|
{
|
||||||
fPiecesBarTimer = [NSTimer scheduledTimerWithTimeInterval: PIECE_TIME target: self
|
fPiecesBarTimer = [NSTimer scheduledTimerWithTimeInterval: PIECE_TIME target: self
|
||||||
selector: @selector(resizePiecesBarIncrement) userInfo: nil repeats: YES];
|
selector: @selector(resizePiecesBarIncrement) userInfo: nil repeats: YES];
|
||||||
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSModalPanelRunLoopMode];
|
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSModalPanelRunLoopMode];
|
||||||
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSEventTrackingRunLoopMode];
|
[[NSRunLoop currentRunLoop] addTimer: fPiecesBarTimer forMode: NSEventTrackingRunLoopMode];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue