mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
allow speed limit to be automatically updated when modal panels are active, fixes #366
This commit is contained in:
parent
ddcd160449
commit
2f17b922a9
1 changed files with 2 additions and 0 deletions
|
@ -442,6 +442,8 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
[self autoSpeedLimitChange: nil];
|
||||
fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self
|
||||
selector: @selector(autoSpeedLimit) userInfo: nil repeats: YES];
|
||||
[[NSRunLoop currentRunLoop] addTimer: fSpeedLimitTimer forMode: NSModalPanelRunLoopMode];
|
||||
[[NSRunLoop currentRunLoop] addTimer: fSpeedLimitTimer forMode: NSEventTrackingRunLoopMode];
|
||||
}
|
||||
|
||||
- (void) applicationDidFinishLaunching: (NSNotification *) notification
|
||||
|
|
Loading…
Reference in a new issue