tiny consistency changes

This commit is contained in:
Mitchell Livingston 2007-03-11 22:12:01 +00:00
parent 18c171d0ae
commit 305675cc3b
3 changed files with 6 additions and 7 deletions

View File

@ -32,7 +32,7 @@
tr_handle_t * fHandle;
NSUserDefaults * fDefaults;
BOOL hasLoaded;
BOOL fHasLoaded;
NSToolbar * fToolbar;
IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fNetworkView;

View File

@ -112,7 +112,7 @@
- (void) awakeFromNib
{
hasLoaded = YES;
fHasLoaded = YES;
fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
[fToolbar setDelegate: self];
@ -342,7 +342,7 @@
- (void) updateRatioStopField
{
if (!hasLoaded)
if (!fHasLoaded)
return;
[fRatioStopField setFloatValue: [fDefaults floatForKey: @"RatioLimit"]];
@ -363,7 +363,7 @@
- (void) updateLimitFields
{
if (!hasLoaded)
if (!fHasLoaded)
return;
[fUploadField setIntValue: [fDefaults integerForKey: @"UploadLimit"]];

View File

@ -1237,9 +1237,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1;
fError = NO;
NSString * fileType = fInfo->multifile ? NSFileTypeForHFSTypeCode('fldr') : [[self name] pathExtension];
fIcon = [[NSWorkspace sharedWorkspace] iconForFileType: fileType];
[fIcon retain];
fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: fInfo->multifile ? NSFileTypeForHFSTypeCode('fldr')
: [[self name] pathExtension]] retain];
fIconFlipped = [fIcon copy];
[fIconFlipped setFlipped: YES];