mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
allow speed limit to be automatically updated when modal panels are active, fixes #366
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user