tiny consistency changes
This commit is contained in:
parent
18c171d0ae
commit
305675cc3b
|
@ -32,7 +32,7 @@
|
||||||
tr_handle_t * fHandle;
|
tr_handle_t * fHandle;
|
||||||
|
|
||||||
NSUserDefaults * fDefaults;
|
NSUserDefaults * fDefaults;
|
||||||
BOOL hasLoaded;
|
BOOL fHasLoaded;
|
||||||
|
|
||||||
NSToolbar * fToolbar;
|
NSToolbar * fToolbar;
|
||||||
IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fNetworkView;
|
IBOutlet NSView * fGeneralView, * fTransfersView, * fBandwidthView, * fNetworkView;
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
|
|
||||||
- (void) awakeFromNib
|
- (void) awakeFromNib
|
||||||
{
|
{
|
||||||
hasLoaded = YES;
|
fHasLoaded = YES;
|
||||||
|
|
||||||
fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
|
fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Preferences Toolbar"];
|
||||||
[fToolbar setDelegate: self];
|
[fToolbar setDelegate: self];
|
||||||
|
@ -342,7 +342,7 @@
|
||||||
|
|
||||||
- (void) updateRatioStopField
|
- (void) updateRatioStopField
|
||||||
{
|
{
|
||||||
if (!hasLoaded)
|
if (!fHasLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[fRatioStopField setFloatValue: [fDefaults floatForKey: @"RatioLimit"]];
|
[fRatioStopField setFloatValue: [fDefaults floatForKey: @"RatioLimit"]];
|
||||||
|
@ -363,7 +363,7 @@
|
||||||
|
|
||||||
- (void) updateLimitFields
|
- (void) updateLimitFields
|
||||||
{
|
{
|
||||||
if (!hasLoaded)
|
if (!fHasLoaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
[fUploadField setIntValue: [fDefaults integerForKey: @"UploadLimit"]];
|
[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;
|
fOrderValue = orderValue ? [orderValue intValue] : tr_torrentCount(fLib) - 1;
|
||||||
fError = NO;
|
fError = NO;
|
||||||
|
|
||||||
NSString * fileType = fInfo->multifile ? NSFileTypeForHFSTypeCode('fldr') : [[self name] pathExtension];
|
fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: fInfo->multifile ? NSFileTypeForHFSTypeCode('fldr')
|
||||||
fIcon = [[NSWorkspace sharedWorkspace] iconForFileType: fileType];
|
: [[self name] pathExtension]] retain];
|
||||||
[fIcon retain];
|
|
||||||
|
|
||||||
fIconFlipped = [fIcon copy];
|
fIconFlipped = [fIcon copy];
|
||||||
[fIconFlipped setFlipped: YES];
|
[fIconFlipped setFlipped: YES];
|
||||||
|
|
Loading…
Reference in New Issue