tiny consistency changes
This commit is contained in:
parent
18c171d0ae
commit
305675cc3b
|
@ -32,7 +32,7 @@
|
|||
tr_handle_t * fHandle;
|
||||
|
||||
NSUserDefaults * fDefaults;
|
||||
BOOL hasLoaded;
|
||||
BOOL fHasLoaded;
|
||||
|
||||
NSToolbar * fToolbar;
|
||||
IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fNetworkView;
|
||||
|
|
|
@ -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"]];
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue