Changeset 1319


Ignore:
Timestamp:
Jan 8, 2007, 3:20:18 PM (15 years ago)
Author:
livings124
Message:

since the default values really don't matter, set torrent speed limits to global limits by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r1318 r1319  
    2525#import "Torrent.h"
    2626#import "StringAdditions.h"
    27 
    28 #define DOWNLOAD_LIMIT_DEFAULT 50
    29 #define UPLOAD_LIMIT_DEFAULT 20
    3027
    3128#define BAR_HEIGHT 12.0
     
    11771174    fLimitCustom = limitCustom ? [limitCustom boolValue] : NO;
    11781175    fCheckUpload = checkUpload ? [checkUpload boolValue] : NO;
    1179     fUploadLimit = uploadLimit ? [uploadLimit intValue] : UPLOAD_LIMIT_DEFAULT;
     1176    fUploadLimit = uploadLimit ? [uploadLimit intValue] : [fDefaults integerForKey: @"UploadLimit"];
    11801177    fCheckDownload = checkDownload ? [checkDownload boolValue] : NO;
    1181     fDownloadLimit = downloadLimit ? [downloadLimit intValue] : DOWNLOAD_LIMIT_DEFAULT;
     1178    fDownloadLimit = downloadLimit ? [downloadLimit intValue] : [fDefaults integerForKey: @"DownloadLimit"];
    11821179    [self updateSpeedSetting];
    11831180   
Note: See TracChangeset for help on using the changeset viewer.