Ignore:
Timestamp:
Jun 30, 2006, 11:43:43 PM (16 years ago)
Author:
livings124
Message:

Speed Limit: a way to quickly change the upload and download limits for when less bandwidth has to be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r489 r490  
    126126    [self showStatusBar: [fDefaults boolForKey: @"StatusBar"] animate: NO];
    127127   
     128    //set speed limit
     129    BOOL speedLimit = [fDefaults boolForKey: @"SpeedLimit"];
     130    [fSpeedLimitItem setState: speedLimit];
     131   
    128132    [fActionButton setToolTip: @"Shortcuts for changing global settings."];
    129133
     
    916920}
    917921
     922- (void) toggleSpeedLimit: (id) sender
     923{
     924    BOOL enable = [fSpeedLimitItem state] == NSOffState;
     925
     926    [fSpeedLimitItem setState: enable];
     927    [fDefaults setBool: enable forKey: @"SpeedLimit"];
     928
     929    [fPrefsController enableSpeedLimit: enable];
     930}
     931
    918932- (void) setLimitGlobalEnabled: (id) sender
    919933{
Note: See TracChangeset for help on using the changeset viewer.