- [[statusWindow contentView] setNeedsDisplay:YES];
- [statusWindow appear:self];
-}
-
-- (IBAction)hideStatusWindow:(id)sender
-{
- [statusWindow vanish:self];
+ if ( ([statusWindow visibilityState] == ITTransientStatusWindowHiddenState) ||
+ ([statusWindow visibilityState] == ITTransientStatusWindowVanishingState) ) {
+ [[statusWindow contentView] setNeedsDisplay:YES];
+ [statusWindow appear:self];
+ } else {
+ [statusWindow vanish:self];
+ }