(1) check a torrent's `fast resume' state as soon as it's added. (2) in gtk, show % done even when torrent is stopped
This commit is contained in:
parent
c476286d16
commit
3e0cac55fd
|
@ -1521,7 +1521,7 @@ torrent_inspector_new ( GtkWindow * parent, TrTorrent * gtor )
|
|||
char *size, *pch;
|
||||
GtkWidget *d, *n, *w;
|
||||
tr_torrent_t * tor = tr_torrent_handle (gtor);
|
||||
tr_info_t * info = tr_torrent_info (gtor);
|
||||
const tr_info_t * info = tr_torrent_info (gtor);
|
||||
|
||||
/* create the dialog */
|
||||
pch = g_strdup_printf ("%s: %s",
|
||||
|
|
|
@ -648,7 +648,7 @@ tr_torrent_status_str ( TrTorrent * gtor )
|
|||
break;
|
||||
|
||||
case TR_STATUS_STOPPED:
|
||||
top = g_strdup( _("Stopped") );
|
||||
top = g_strdup_printf( _("Stopped (%.1f%%)"), prog );
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -948,6 +948,8 @@ torrentThreadLoop ( void * _tor )
|
|||
tr_lockInit( &checkFilesLock );
|
||||
}
|
||||
|
||||
tor->recheckFlag = !tr_ioCheckFiles( tor, TR_RECHECK_FAST );
|
||||
|
||||
/* loop until the torrent is being deleted */
|
||||
while( ! ( tor->dieFlag && (tor->runStatus == TR_RUN_STOPPED) ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue