Changeset 10172


Ignore:
Timestamp:
Feb 11, 2010, 2:45:03 PM (12 years ago)
Author:
charles
Message:

(trunk gtk) make the GTK+ client's file list a little faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/file-list.c

    r10066 r10172  
    110110    {
    111111        tr_torrent * tor = data->tor;
    112         const int enabled = tr_torrentGetFileDL( tor, index );
    113         const int priority = tr_torrentGetFilePriority( tor, index );
     112        const tr_info * inf = tr_torrentInfo( tor );
     113        const int enabled = !inf->files[index].dnd;
     114        const int priority = inf->files[index].priority;
    114115        const uint64_t have = data->refresh_file_stat[index].bytesCompleted;
    115116        const int prog = size ? (int)((100.0*have)/size) : 1;
Note: See TracChangeset for help on using the changeset viewer.