Releaseses the start items when you logout so it'll force a update and added a update 5 minutes after it starts everything to help improve the probability of it updating the database before your computer crashes and to prevent some applications from launching twice.
This commit is contained in:
parent
89c1462a05
commit
404fdad555
@ -321,8 +321,10 @@ OSStatus frontAppChanged(EventHandlerCallRef nextHandler, EventRef theEvent, voi
|
||||
#endif
|
||||
}
|
||||
|
||||
if (itemIndex>=[startItems count])
|
||||
if (itemIndex>=[startItems count]) {
|
||||
[self releaseStartItems];
|
||||
[self performSelector:@selector(updateItems) withObject:nil afterDelay:300];
|
||||
}
|
||||
}
|
||||
- (void)startItem:(NSTimer *)timer {
|
||||
NSDictionary *info = [timer userInfo];
|
||||
@ -667,6 +669,7 @@ OSStatus frontAppChanged(EventHandlerCallRef nextHandler, EventRef theEvent, voi
|
||||
|
||||
- (void)willLogout:(NSNotification *)theNotification {
|
||||
if (mainWindow!=nil) [self releaseMainWindow];
|
||||
[self releaseStartItems];
|
||||
[self updateItems];
|
||||
}
|
||||
- (void)updaterWillRelaunchApplication {
|
||||
|
Loading…
Reference in New Issue
Block a user