diff --git a/daemon/remote.c b/daemon/remote.c index 3ae05f939..fb896227e 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1327,13 +1327,13 @@ printTrackersImpl( tr_benc * trackerStats ) printf( "\n" ); printf( " Tracker %d: %s\n", (int)(id), host ); if( isBackup ) - printf( " Backup on tier #%d\n", (int)tier ); + printf( " Backup on tier %d\n", (int)tier ); else - printf( " Active in tier #%d\n", (int)tier ); + printf( " Active in tier %d\n", (int)tier ); if( !isBackup ) { - if( hasAnnounced ) + if( hasAnnounced && announceState != TR_TRACKER_INACTIVE ) { tr_strltime( buf, now - lastAnnounceTime, sizeof( buf ) ); if( lastAnnounceSucceeded ) diff --git a/gtk/details.c b/gtk/details.c index a9899482a..b09a58bc5 100644 --- a/gtk/details.c +++ b/gtk/details.c @@ -1821,7 +1821,7 @@ buildTrackerSummary( const char * key, const tr_tracker_stat * st, gboolean show if( !st->isBackup ) { - if( st->hasAnnounced ) + if( st->hasAnnounced && st->announceState != TR_TRACKER_INACTIVE ) { g_string_append_c( gstr, '\n' ); tr_strltime_rounded( timebuf, now - st->lastAnnounceTime, sizeof( timebuf ) ); @@ -1840,10 +1840,8 @@ buildTrackerSummary( const char * key, const tr_tracker_stat * st, gboolean show switch( st->announceState ) { case TR_TRACKER_INACTIVE: - if( !st->hasAnnounced ) { - g_string_append_c( gstr, '\n' ); - g_string_append( gstr, _( "No updates scheduled" ) ); - } + g_string_append_c( gstr, '\n' ); + g_string_append( gstr, _( "No updates scheduled" ) ); break; case TR_TRACKER_WAITING: tr_strltime_rounded( timebuf, st->nextAnnounceTime - now, sizeof( timebuf ) ); diff --git a/qt/tracker-delegate.cc b/qt/tracker-delegate.cc index adbbed15e..29a3513b5 100644 --- a/qt/tracker-delegate.cc +++ b/qt/tracker-delegate.cc @@ -152,7 +152,7 @@ TrackerDelegate :: getText( const TrackerInfo& inf ) const // announce & scrape info if( !inf.st.isBackup ) { - if( inf.st.hasAnnounced ) + if( inf.st.hasAnnounced && inf.st.announceState != TR_TRACKER_INACTIVE ) { const QString tstr( timeToStringRounded( now - inf.st.lastAnnounceTime ) ); str += "
\n"; @@ -184,10 +184,8 @@ TrackerDelegate :: getText( const TrackerInfo& inf ) const switch( inf.st.announceState ) { case TR_TRACKER_INACTIVE: - if( !inf.st.hasAnnounced ) { - str += "
\n"; - str += tr( "No updates scheduled" ); - } + str += "
\n"; + str += tr( "No updates scheduled" ); break; case TR_TRACKER_WAITING: {