Changeset 10345 for branches


Ignore:
Timestamp:
Mar 10, 2010, 3:45:15 AM (12 years ago)
Author:
livings124
Message:

(1.9x) #3009 display an indeterminate progress indicator in the add window when waiting to start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.9x/macosx/AddWindowController.m

    r10283 r10345  
    7474       
    7575        fGroupValue = [torrent groupValue];
     76       
     77        [fVerifyIndicator setUsesThreadedAnimation: YES];
    7678    }
    7779    return self;
     
    269271    if ([fTorrent isChecking])
    270272    {
     273        const BOOL waiting = [fTorrent isCheckingWaiting];
     274        [fVerifyIndicator setIndeterminate: waiting];
     275        if (!waiting)
     276            [fVerifyIndicator setDoubleValue: [fTorrent checkingProgress]];
     277        else
     278            [fVerifyIndicator startAnimation: self];
     279       
    271280        [fVerifyIndicator setHidden: NO];
    272         [fVerifyIndicator setDoubleValue: [fTorrent checkingProgress]];
    273281    }
    274282    else
     283    {
     284        [fVerifyIndicator stopAnimation: self];
    275285        [fVerifyIndicator setHidden: YES];
     286    }
    276287}
    277288
Note: See TracChangeset for help on using the changeset viewer.