1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-23 06:30:38 +00:00

allow speed limit to be automatically updated when modal panels are active, fixes #366

This commit is contained in:
Mitchell Livingston 2007-10-12 20:51:27 +00:00
parent ddcd160449
commit 2f17b922a9

View file

@ -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