X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/b095dd6c161ed2aeab736323d366f3476f17cae9..71ca8f780ad1fb4238e5649e84accdfab6b4ad59:/MTBlingController.m diff --git a/MTBlingController.m b/MTBlingController.m index 8e9af92..eeb7174 100755 --- a/MTBlingController.m +++ b/MTBlingController.m @@ -50,9 +50,10 @@ if ( ! window ) { window = [MTShizzleWindow sharedWindowForSender:self]; } - + [NSApp activateIgnoringOtherApps:YES]; [window center]; - [window makeKeyAndOrderFront:nil]; + [window orderFrontRegardless]; + [window makeKeyWindow]; // [window setLevel:NSStatusWindowLevel]; } @@ -75,6 +76,9 @@ - (void)registerLater:(id)sender { [window orderOut:self]; + if ([[NSDate date] timeIntervalSinceDate:[[MainController sharedController] getBlingTime]] >= 604800) { + [NSApp terminate:nil]; + } } - (void)verifyKey:(id)sender