Changeset 126


Ignore:
Timestamp:
Feb 11, 2006, 6:46:40 AM (16 years ago)
Author:
titer
Message:

When both torrent and non-torrent files are dropped, only open the torrents.
Don't badge with completed downloads when the window is key.
Update the table right after start so you don't stay with an empty list
for one second.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r124 r126  
    145145    fCompleted = 0;
    146146    fStat  = nil;
     147    [self updateUI: nil];
    147148    fTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
    148         selector: @selector( updateUI: ) userInfo: NULL repeats: YES];
     149        selector: @selector( updateUI: ) userInfo: nil repeats: YES];
    149150    [[NSRunLoop currentRunLoop] addTimer: fTimer
    150151        forMode: NSModalPanelRunLoopMode];
     
    155156    fUpdateTimer = [NSTimer scheduledTimerWithTimeInterval: 60.0
    156157        target: self selector: @selector( checkForUpdateTimer: )
    157         userInfo: NULL repeats: YES];
     158        userInfo: nil repeats: YES];
    158159}
    159160
     
    584585            continue;
    585586
    586         fCompleted++;
     587        if( ![fWindow isKeyWindow] )
     588            fCompleted++;
    587589        [self notifyGrowl: [NSString stringWithUTF8String:
    588590            fStat[i].info.name]];
     
    651653    (NSTableViewDropOperation) operation
    652654{
    653     [self application: NSApp openFiles: [[info draggingPasteboard]
    654         propertyListForType: NSFilenamesPboardType]];
     655    [self application: NSApp openFiles: [[[info draggingPasteboard]
     656        propertyListForType: NSFilenamesPboardType]
     657        pathsMatchingExtensions: [NSArray arrayWithObject: @"torrent"]]];
    655658    return YES;
    656659}
Note: See TracChangeset for help on using the changeset viewer.