X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/9c8f6e1b9b0b947d898a3d9bae3acb3999879791..6d099bbe927a1dc3934c7b6254223961fc849453:/MTShizzleWindow.m diff --git a/MTShizzleWindow.m b/MTShizzleWindow.m index ede4cd2..a0903a5 100755 --- a/MTShizzleWindow.m +++ b/MTShizzleWindow.m @@ -1,4 +1,5 @@ #import "MTShizzleWindow.h" +#import "MainController.h" @interface MTShizzleWindow (Private) - (void)setBling:(id)bling; @@ -37,6 +38,15 @@ static MTShizzleWindow *_privateSharedWindow = nil; return self; } +- (void)makeKeyAndOrderFront:(id)sender { + if ( ( [[NSDate date] timeIntervalSinceDate:[[MainController sharedController] getBlingTime]] >= 604800 ) && ([[regLater title] isEqualToString:@"Register Later"]) ) { + [regLater setTitle:@"Quit"]; + [regLater setTarget:[NSApplication sharedApplication]]; + [regLater setAction:@selector(terminate:)]; + } + [super makeKeyAndOrderFront:sender]; +} + - (void)dealloc { [regMessage release];