Changeset 3073
- Timestamp:
- Sep 15, 2007, 8:09:28 PM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Controller.m
r3063 r3073 2114 2114 [self updateTorrentsInQueue]; 2115 2115 [fInfoController updateInfoStats]; 2116 [fInfoController updateRatioForTorrent: torrent];2117 2116 2118 2117 if ([fDefaults boolForKey: @"PlaySeedingSound"]) -
trunk/macosx/InfoWindowController.h
r3063 r3073 72 72 - (void) updateInfoStats; 73 73 74 - (void) updateRatioForTorrent: (Torrent *) torrent;75 76 74 - (void) setNextTab; 77 75 - (void) setPreviousTab; -
trunk/macosx/InfoWindowController.m
r3071 r3073 109 109 //allow for update notifications 110 110 NSNotificationCenter * nc = [NSNotificationCenter defaultCenter]; 111 [nc addObserver: self selector: @selector(updateInfoStats) 112 name: @"UpdateStats" object: nil]; 113 114 [nc addObserver: self selector: @selector(updateInfoSettings) 115 name: @"UpdateSettings" object: nil]; 111 [nc addObserver: self selector: @selector(updateInfoStats) name: @"UpdateStats" object: nil]; 116 112 } 117 113 … … 309 305 310 306 //update stats and settings 311 [self updateInfoS ettings];307 [self updateInfoStats]; 312 308 313 309 [fPeerTable reloadData]; … … 332 328 else if ([ident isEqualToString: TAB_FILES_IDENT]) 333 329 [self updateInfoFiles]; 330 else if ([ident isEqualToString: TAB_OPTIONS_IDENT]) 331 [self updateInfoSettings]; 334 332 else; 335 333 } … … 580 578 } 581 579 582 #warning change even when already active583 580 [fPexCheck setEnabled: pexEnabled]; 584 581 [fPexCheck setState: pexState]; 585 [fPexCheck setToolTip: !pexEnabled ? NSLocalizedString(@"PEX can only be toggled on p ublic torrents when paused.",582 [fPexCheck setToolTip: !pexEnabled ? NSLocalizedString(@"PEX can only be toggled on paused public torrents.", 586 583 "Inspector -> pex check") : @""]; 587 584 } 588 585 else 589 586 { 587 #warning move 588 590 589 [fUploadLimitPopUp setEnabled: NO]; 591 590 [fUploadLimitPopUp selectItemAtIndex: -1]; … … 609 608 [fPexCheck setToolTip: @""]; 610 609 } 611 612 [self updateInfoStats];613 }614 615 - (void) updateRatioForTorrent: (Torrent *) torrent616 {617 if ([fTorrents containsObject: torrent])618 [self updateInfoSettings];619 610 } 620 611 -
trunk/macosx/TorrentTableView.m
r3045 r3073 395 395 [fMenuTorrent setSpeedMode: mode upload: [sender menu] == fUploadMenu]; 396 396 397 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateS ettings" object: nil];397 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; 398 398 } 399 399 … … 404 404 [fMenuTorrent setSpeedLimit: [[sender title] intValue] upload: upload]; 405 405 406 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateS ettings" object: nil];406 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; 407 407 } 408 408 … … 421 421 [fMenuTorrent setRatioSetting: mode]; 422 422 423 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateS ettings" object: nil];423 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; 424 424 } 425 425 … … 429 429 [fMenuTorrent setRatioLimit: [[sender title] floatValue]]; 430 430 431 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateS ettings" object: nil];431 [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil]; 432 432 } 433 433
Note: See TracChangeset
for help on using the changeset viewer.