Changeset 12632


Ignore:
Timestamp:
Aug 6, 2011, 3:09:40 AM (10 years ago)
Author:
livings124
Message:

update the queue stalled minutes fields in the prefs window when they change over rpc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r12625 r12632  
    797797- (void) setStalledMinutes: (id) sender
    798798{
    799     [fDefaults setInteger: [sender intValue] forKey: @"StalledMinutes"];
    800     tr_sessionSetQueueStalledMinutes(fHandle, [fDefaults integerForKey: @"StalledMinutes"]);
     799    const NSInteger min = [sender intValue];
     800    [fDefaults setInteger: min forKey: @"StalledMinutes"];
     801    tr_sessionSetQueueStalledMinutes(fHandle, min);
    801802   
    802803    [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
     
    12351236    [fDefaults setFloat: ratioLimit forKey: @"RatioLimit"];
    12361237   
    1237     //Idle seed limit
     1238    //idle seed limit
    12381239    const BOOL idleLimited = tr_sessionIsIdleLimited(fHandle);
    12391240    [fDefaults setBool: idleLimited forKey: @"IdleLimitCheck"];
     
    12511252    const BOOL seedQueue = tr_sessionGetQueueEnabled(fHandle, TR_UP);
    12521253    [fDefaults setBool: seedQueue forKey: @"QueueSeed"];
    1253     [fDefaults setBool: downloadQueue forKey: @"Queue"];
    12541254   
    12551255    const int seedQueueNum = tr_sessionGetQueueSize(fHandle, TR_UP);
    12561256    [fDefaults setInteger: seedQueueNum forKey: @"QueueSeedNumber"];
     1257   
     1258    const int stalledMinutes = tr_sessionGetQueueStalledMinutes(fHandle);
     1259    [fDefaults setInteger: stalledMinutes forKey: @"StalledMinutes"];
    12571260   
    12581261    //done script
     
    13081311        //idle limit enabled handled by bindings
    13091312        [fIdleStopField setIntegerValue: idleLimitMin];
     1313       
     1314        //queues enabled handled by bindings
     1315        [fQueueDownloadField setIntValue: downloadQueueNum];
     1316        [fQueueSeedField setIntValue: seedQueueNum];
     1317       
     1318        [fStalledField setIntValue: stalledMinutes];
    13101319    }
    13111320   
Note: See TracChangeset for help on using the changeset viewer.