Added a reset prefs status window for when the user first upgrades to 1.2
[MenuTunes.git] / StatusWindowController.m
index 293e35c..5cac976 100755 (executable)
@@ -276,5 +276,21 @@ static StatusWindowController *sharedController;
     [_window setLocked:YES];
 }
 
+- (void)showPreferencesUpdateWindow
+{
+    NSString *message = @"The new features in this version of MenuTunes\nrequire you to reconfigure your preferences.";
+
+    [_window setImage:[NSImage imageNamed:@"Setup"]];
+    [_window setSizing:(StatusWindowSizing)[df integerForKey:@"statusWindowSizing"]];
+    [_window buildDialogWindowWithMessage:message
+                            defaultButton:@"Show Preferences"
+                          alternateButton:@"OK"
+                                   target:[MainController sharedController]
+                            defaultAction:@selector(showPreferencesAndClose)
+                          alternateAction:@selector(cancelReconnect)];
+
+    [_window appear:self];
+    [_window setLocked:YES];
+}
 
 @end
\ No newline at end of file