Changeset 5318

Show
Ignore:
Timestamp:
02/28/08 04:31:36 (4 months ago)
Author:
morris
Message:

Check if connection was hidden on delay before showing window

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCPublicChat.m

    r5249 r5318  
    4949- (NSToolbar *)_toolbar; 
    5050 
     51- (void)_showChatWindow; 
     52 
    5153- (void)_updateMessagesIcon; 
    5254- (void)_updateNewsIcon; 
     
    178180 
    179181        return [toolbar autorelease]; 
     182} 
     183 
     184 
     185 
     186#pragma mark - 
     187 
     188- (void)_showChatWindow { 
     189        if(![self isHidden]) 
     190                [self showWindow:self]; 
    180191} 
    181192 
     
    345356                [[self connection] sendCommand:WCBannerCommand]; 
    346357 
    347         [self performSelector:@selector(showWindow:) withObject:self afterDelay:0.0]; 
     358        [self performSelector:@selector(_showChatWindow) afterDelay:0.0]; 
    348359         
    349360        _isShown = YES;