X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/b095dd6c161ed2aeab736323d366f3476f17cae9..72d97dfa58a2945c5d794d4f765db733a36360c1:/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