mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
Show total completed downloads in properties window.
This commit is contained in:
parent
44f8325312
commit
ff13d6e71b
1 changed files with 5 additions and 1 deletions
|
@ -541,7 +541,7 @@ makeinfowind(GtkWindow *parent, TrTorrent *tor) {
|
|||
GtkWidget *wind, *label;
|
||||
int ii;
|
||||
char *str;
|
||||
const int rowcount = 14;
|
||||
const int rowcount = 15;
|
||||
GtkWidget *table = gtk_table_new(rowcount, 2, FALSE);
|
||||
|
||||
/* XXX should use model and update this window regularly */
|
||||
|
@ -590,6 +590,10 @@ makeinfowind(GtkWindow *parent, TrTorrent *tor) {
|
|||
INFOLINE(table, ii, _("Leechers:"), _("?"));
|
||||
else
|
||||
INFOLINEF(table, ii, "%i", _("Leechers:"), sb->leechers);
|
||||
if(0 > sb->completedFromTracker)
|
||||
INFOLINE(table, ii, _("Completed:"), _("?"));
|
||||
else
|
||||
INFOLINEF(table, ii, "%i", _("Completed:"), sb->completedFromTracker);
|
||||
|
||||
INFOSEP(table, ii);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue