Ignore:
Timestamp:
May 12, 2009, 12:58:22 AM (13 years ago)
Author:
livings124
Message:

#2045 hold down option key on launch to start with all torrents paused

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r8371 r8386  
    2525#import <IOKit/IOMessage.h>
    2626#import <IOKit/pwr_mgt/IOPMLib.h>
     27#import <Carbon/Carbon.h>
    2728
    2829#import "Controller.h"
     
    307308        [[SUUpdater sharedUpdater] setDelegate: self];
    308309        fUpdateInProgress = NO;
     310       
     311        fPauseOnLaunch = (GetCurrentKeyModifiers() & (optionKey | rightOptionKey)) != 0;
    309312    }
    310313    return self;
     
    402405        {
    403406            Torrent * torrent;
    404             if ((torrent = [[Torrent alloc] initWithHistory: historyItem lib: fLib]))
     407            if ((torrent = [[Torrent alloc] initWithHistory: historyItem lib: fLib forcePause: fPauseOnLaunch]))
    405408            {
    406409                [fTorrents addObject: torrent];
Note: See TracChangeset for help on using the changeset viewer.