mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
(gtk) #1015: only count selected files in the progress bar
This commit is contained in:
parent
44a675ab0f
commit
51aa583d60
1 changed files with 1 additions and 3 deletions
|
@ -453,9 +453,7 @@ torrent_cell_renderer_render( GtkCellRenderer * cell,
|
|||
my_cell.height = p->bar_height;
|
||||
if( 1 )
|
||||
{
|
||||
const double havePercent = ( torStat->haveValid + torStat->haveUnchecked )
|
||||
/ (double)info->totalSize;
|
||||
g_object_set( p->progress_renderer, "value", (int)(havePercent*100.0),
|
||||
g_object_set( p->progress_renderer, "value", (int)(torStat->percentDone*100.0),
|
||||
"text", "",
|
||||
NULL );
|
||||
gtk_cell_renderer_render( p->progress_renderer,
|
||||
|
|
Loading…
Reference in a new issue