+- (void)showPreferencesAndClose
+{
+ ITDebugLog(@"Show preferences.");
+ [[PreferencesController sharedPrefs] showPrefsWindow:self];
+ [[StatusWindow sharedWindow] setLocked:NO];
+ [[StatusWindow sharedWindow] vanish:self];
+ [[StatusWindow sharedWindow] setIgnoresMouseEvents:YES];
+}
+