mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Fix missing torrent states.
This commit is contained in:
@@ -333,6 +333,8 @@ QIcon getIconByState(BitTorrent::TorrentState state)
|
||||
return getQueuedIcon();
|
||||
case BitTorrent::TorrentState::CheckingDownloading:
|
||||
case BitTorrent::TorrentState::CheckingUploading:
|
||||
case BitTorrent::TorrentState::QueuedForChecking:
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
return getCheckingIcon();
|
||||
case BitTorrent::TorrentState::Unknown:
|
||||
case BitTorrent::TorrentState::Error:
|
||||
@@ -378,6 +380,8 @@ QColor getColorByState(BitTorrent::TorrentState state)
|
||||
case BitTorrent::TorrentState::QueuedUploading:
|
||||
case BitTorrent::TorrentState::CheckingDownloading:
|
||||
case BitTorrent::TorrentState::CheckingUploading:
|
||||
case BitTorrent::TorrentState::QueuedForChecking:
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
return QColor(0, 128, 128); // Teal
|
||||
case BitTorrent::TorrentState::Unknown:
|
||||
return QColor(255, 0, 0); // red
|
||||
|
||||
@@ -123,6 +123,12 @@ void TransferListDelegate::paint(QPainter * painter, const QStyleOptionViewItem
|
||||
case BitTorrent::TorrentState::CheckingUploading:
|
||||
display = tr("Checking", "Torrent local data is being checked");
|
||||
break;
|
||||
case BitTorrent::TorrentState::QueuedForChecking:
|
||||
display = tr("Queued for checking", "i.e. torrent is queued for hash checking");
|
||||
break;
|
||||
case BitTorrent::TorrentState::CheckingResumeData:
|
||||
display = tr("Checking resume data", "used when loading the torrents from disk after qbt is launched. It checks the correctness of the .fastresume file. Normally it is completed in a fraction of a second, unless loading many many torrents.");
|
||||
break;
|
||||
case BitTorrent::TorrentState::PausedDownloading:
|
||||
display = tr("Paused");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user