mirror of
https://github.com/transmission/transmission
synced 2025-03-09 05:14:09 +00:00
check for files to auto import at launch
This commit is contained in:
parent
2a491b88ab
commit
56e8a2f72d
1 changed files with 3 additions and 2 deletions
|
@ -207,8 +207,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
IONotificationPortRef notify;
|
||||
io_object_t iterator;
|
||||
if (fRootPort = IORegisterForSystemPower(self, & notify, sleepCallBack, & iterator))
|
||||
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notify),
|
||||
kCFRunLoopCommonModes);
|
||||
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notify), kCFRunLoopCommonModes);
|
||||
else
|
||||
NSLog(@"Could not IORegisterForSystemPower");
|
||||
|
||||
|
@ -365,6 +364,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
[self autoSpeedLimitChange: nil];
|
||||
fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self
|
||||
selector: @selector(autoSpeedLimit:) userInfo: nil repeats: YES];
|
||||
|
||||
[self checkAutoImportDirectory];
|
||||
}
|
||||
|
||||
- (BOOL) applicationShouldHandleReopen: (NSApplication *) app hasVisibleWindows: (BOOL) visibleWindows
|
||||
|
|
Loading…
Add table
Reference in a new issue