Permalink
Browse files

add a period to the end of the your feedback has been sent alert and …

…center the window when shown.

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information...
1 parent 7ee0fe8 commit f4c063019e164c3e7a1f16ae7f5c4250f922d2bf Brian Cooke committed with Aug 6, 2009
Showing with 10 additions and 2 deletions.
  1. +1 −0 lib/JRFeedbackController.h
  2. +9 −2 lib/JRFeedbackController.m
View
1 lib/JRFeedbackController.h
@@ -55,5 +55,6 @@ typedef enum {
withInformativeText:(NSString *)text
andAlertStyle:(NSAlertStyle)alertStyle;
+- (void)showWindow:(id)sender;
@end
View
11 lib/JRFeedbackController.m
@@ -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
@@ -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
}
@@ -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.