Skip to content

Commit

Permalink
add a period to the end of the your feedback has been sent alert and …
Browse files Browse the repository at this point in the history
…center the window when shown.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
Brian Cooke authored and rentzsch committed Aug 6, 2009
1 parent 7ee0fe8 commit f4c0630
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/JRFeedbackController.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ typedef enum {
withInformativeText:(NSString *)text
andAlertStyle:(NSAlertStyle)alertStyle;

- (void)showWindow:(id)sender;

@end
11 changes: 9 additions & 2 deletions lib/JRFeedbackController.m
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection*)connection {
#if USE_GROWL
[GrowlApplicationBridge setGrowlDelegate:@""];
[GrowlApplicationBridge notifyWithTitle:@"Thank you!"
description:@"Your feedback has been sent"
description:@"Your feedback has been sent."
notificationName:@"Feedback Sent"
iconData:nil
priority:0
Expand All @@ -240,7 +240,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection*)connection {
#else
// drop thank you sheet
[self displayAlertMessage:@"Thank you for your feedback!"
withInformativeText:@"Your feedback has been sent"
withInformativeText:@"Your feedback has been sent."
andAlertStyle:NSInformationalAlertStyle];
#endif
}
Expand Down Expand Up @@ -302,4 +302,11 @@ + (NSURL*)postURL {
return [NSURL URLWithString:postURLString];
}

// overloaded to center the window after display
- (void)showWindow:(id)sender
{
[super showWindow:sender];
[[self window] center];
}

@end

0 comments on commit f4c0630

Please sign in to comment.