mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
fix regression where N/A is shown when leechers, seeders, or completed is 0; promote AR
This commit is contained in:
parent
00a425a7d3
commit
6c6bd8d1d5
3 changed files with 9 additions and 9 deletions
2
AUTHORS
2
AUTHORS
|
@ -11,6 +11,7 @@ Lead Developers <transmission-dev@m0k.org>
|
|||
Project Contributors
|
||||
Nick Pucius (Mac OS X Help documentation)
|
||||
Hugo van Heuven, madebysofa (Icon design, Mac toolbar icons)
|
||||
Anthony Ryan (Redesigned icon, Mac inspector icons)
|
||||
|
||||
Translators
|
||||
Mac OS X, current release:
|
||||
|
@ -45,7 +46,6 @@ Image Contributors
|
|||
FOOOD
|
||||
Martin Stadtmueller (Icon tweaking)
|
||||
Mike Matas <http://www.mikematas.com/> (Previous toolbar icons)
|
||||
Anthony Ryan (Inspector icons)
|
||||
Jonas Rask (Globe icon)
|
||||
George Tsotsos
|
||||
Rashid Eissing (Transfers preferences icon)
|
||||
|
|
|
@ -39,7 +39,10 @@ Lead Developers
|
|||
\fs20 \cf2 (Mac OS X Help documentation)\
|
||||
|
||||
\fs24 \cf0 Hugo van Heuven, madebysofa
|
||||
\fs20 \cf2 (Icon design, Mac toolbar icons)
|
||||
\fs20 \cf2 (Icon design, Mac toolbar icons)\
|
||||
|
||||
\fs24 \cf0 Anthony Ryan
|
||||
\fs20 \cf2 (Redesigned icon, Mac inspector icons)
|
||||
\fs24 \cf0 \
|
||||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural
|
||||
\cf0 \
|
||||
|
@ -87,10 +90,7 @@ Image Contributors\
|
|||
\f0\b\fs24 \cf0 \
|
||||
|
||||
\f1\b0 Mike Matas <http://www.mikematas.com/>
|
||||
\fs20 \cf2 (Previous toolbar icons)\
|
||||
|
||||
\fs24 \cf0 Anthony Ryan
|
||||
\fs20 \cf2 (Inspector icons)
|
||||
\fs20 \cf2 (Previous toolbar icons)
|
||||
\fs24 \cf0 \
|
||||
Jonas Rask
|
||||
\fs20 \cf2 (Globe icon)
|
||||
|
|
|
@ -1177,9 +1177,9 @@ typedef enum
|
|||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||
|
||||
int seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
|
||||
[fSeedersField setStringValue: seeders > 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
|
||||
[fLeechersField setStringValue: leechers > 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
|
||||
[fCompletedFromTrackerField setStringValue: completed > 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
|
||||
[fSeedersField setStringValue: seeders >= 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
|
||||
[fLeechersField setStringValue: leechers >= 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
|
||||
[fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
|
||||
|
||||
BOOL active = [torrent isActive];
|
||||
|
||||
|
|
Loading…
Reference in a new issue