mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
(trunk gtk) make the GTK+ client's file list a little faster
This commit is contained in:
parent
13b03ba195
commit
c51611f202
1 changed files with 3 additions and 2 deletions
|
@ -109,8 +109,9 @@ refreshFilesForeach( GtkTreeModel * model,
|
|||
if( is_file )
|
||||
{
|
||||
tr_torrent * tor = data->tor;
|
||||
const int enabled = tr_torrentGetFileDL( tor, index );
|
||||
const int priority = tr_torrentGetFilePriority( tor, index );
|
||||
const tr_info * inf = tr_torrentInfo( tor );
|
||||
const int enabled = !inf->files[index].dnd;
|
||||
const int priority = inf->files[index].priority;
|
||||
const uint64_t have = data->refresh_file_stat[index].bytesCompleted;
|
||||
const int prog = size ? (int)((100.0*have)/size) : 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue