placeholder of N/A in info window
This commit is contained in:
parent
9586b1fc41
commit
5a3352be5c
Binary file not shown.
|
@ -7,7 +7,7 @@
|
|||
<key>IBEditorPositions</key>
|
||||
<dict>
|
||||
<key>153</key>
|
||||
<string>95 422 582 291 0 0 1152 842 </string>
|
||||
<string>285 433 582 291 0 0 1152 842 </string>
|
||||
<key>28</key>
|
||||
<string>58 372 582 290 0 0 1152 842 </string>
|
||||
<key>41</key>
|
||||
|
|
Binary file not shown.
|
@ -221,18 +221,18 @@
|
|||
*/
|
||||
int seeders = [torrent seeders], leechers = [torrent leechers];
|
||||
[fSeedersField setStringValue: seeders < 0 ?
|
||||
@"N/A" : [NSString stringWithInt: seeders]];
|
||||
@"" : [NSString stringWithInt: seeders]];
|
||||
[fLeechersField setStringValue: leechers < 0 ?
|
||||
@"N/A" : [NSString stringWithInt: leechers]];
|
||||
@"" : [NSString stringWithInt: leechers]];
|
||||
|
||||
BOOL active = [torrent isActive];
|
||||
|
||||
[fConnectedPeersField setStringValue: active ? [NSString
|
||||
stringWithInt: [torrent totalPeers]] : @"N/A"];
|
||||
stringWithInt: [torrent totalPeers]] : @""];
|
||||
[fDownloadingFromField setStringValue: active ? [NSString
|
||||
stringWithInt: [torrent peersUploading]] : @"N/A"];
|
||||
stringWithInt: [torrent peersUploading]] : @""];
|
||||
[fUploadingToField setStringValue: active ? [NSString
|
||||
stringWithInt: [torrent peersDownloading]] : @"N/A"];
|
||||
stringWithInt: [torrent peersDownloading]] : @""];
|
||||
|
||||
[fRatioField setStringValue: [NSString stringForRatioWithDownload:
|
||||
downloadedTotal upload: uploadedTotal]];
|
||||
|
|
Loading…
Reference in New Issue