Changeset 523


Ignore:
Timestamp:
Jul 4, 2006, 7:49:43 PM (16 years ago)
Author:
livings124
Message:

Close all windows automatically rather than manually.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r522 r523  
    308308    [fTorrents makeObjectsPerformSelector: @selector(stopTransferForQuit)];
    309309   
    310     //remember window states
     310    //remember window states and close all windows
    311311    [fDefaults setBool: [[fInfoController window] isVisible] forKey: @"InfoVisible"];
    312     [fInfoController close];
    313     [fPrefsController close];
    314     [fWindow close];
     312    [[NSApp windows] makeObjectsPerformSelector: @selector(close)];
    315313    [self showStatusBar: NO animate: NO];
    316314   
     
    318316    [fBadger clearBadge];
    319317
    320     //end quickly if updated version will open
     318    //end quickly if the app is updating
    321319    if (fUpdateInProgress)
    322320        return;
    323321
    324     //wait for running transfers to stop (5 seconds timeout)
     322    //wait for running transfers to stop (5 second timeout)
    325323    NSDate * start = [NSDate date];
    326324    BOOL timeUp = NO;
Note: See TracChangeset for help on using the changeset viewer.