mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Fix status string for errored torrents.
This commit is contained in:
@@ -342,6 +342,7 @@ QIcon getIconByState(BitTorrent::TorrentState state)
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
return getCheckingIcon();
|
||||
case BitTorrent::TorrentState::Unknown:
|
||||
case BitTorrent::TorrentState::MissingFiles:
|
||||
case BitTorrent::TorrentState::Error:
|
||||
return getErrorIcon();
|
||||
default:
|
||||
@@ -384,6 +385,7 @@ QColor getColorByState(BitTorrent::TorrentState state)
|
||||
else
|
||||
return QColor(79, 148, 205); // Steel Blue 3
|
||||
case BitTorrent::TorrentState::Error:
|
||||
case BitTorrent::TorrentState::MissingFiles:
|
||||
return QColor(255, 0, 0); // red
|
||||
case BitTorrent::TorrentState::QueuedDownloading:
|
||||
case BitTorrent::TorrentState::QueuedUploading:
|
||||
|
||||
@@ -135,8 +135,11 @@ void TransferListDelegate::paint(QPainter * painter, const QStyleOptionViewItem
|
||||
case BitTorrent::TorrentState::PausedUploading:
|
||||
display = tr("Completed");
|
||||
break;
|
||||
case BitTorrent::TorrentState::MissingFiles:
|
||||
display = tr("Missing Files");
|
||||
break;
|
||||
case BitTorrent::TorrentState::Error:
|
||||
display = tr("Missing Files");
|
||||
display = tr("Errored", "torrent status, the torrent has an error");
|
||||
break;
|
||||
default:
|
||||
display = "";
|
||||
|
||||
Reference in New Issue
Block a user