mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Add "Forced metadata downloading" state (#15185)
This commit is contained in:
parent
e5943b64c1
commit
01d851440b
5 changed files with 15 additions and 2 deletions
|
@ -75,6 +75,7 @@ namespace
|
|||
{BitTorrent::TorrentState::Downloading, QLatin1String("TransferList.Downloading")},
|
||||
{BitTorrent::TorrentState::StalledDownloading, QLatin1String("TransferList.StalledDownloading")},
|
||||
{BitTorrent::TorrentState::DownloadingMetadata, QLatin1String("TransferList.DownloadingMetadata")},
|
||||
{BitTorrent::TorrentState::ForcedDownloadingMetadata, QLatin1String("TransferList.ForcedDownloadingMetadata")},
|
||||
{BitTorrent::TorrentState::ForcedDownloading, QLatin1String("TransferList.ForcedDownloading")},
|
||||
{BitTorrent::TorrentState::Uploading, QLatin1String("TransferList.Uploading")},
|
||||
{BitTorrent::TorrentState::StalledUploading, QLatin1String("TransferList.StalledUploading")},
|
||||
|
@ -111,6 +112,7 @@ TransferListModel::TransferListModel(QObject *parent)
|
|||
{BitTorrent::TorrentState::Downloading, tr("Downloading")},
|
||||
{BitTorrent::TorrentState::StalledDownloading, tr("Stalled", "Torrent is waiting for download to begin")},
|
||||
{BitTorrent::TorrentState::DownloadingMetadata, tr("Downloading metadata", "Used when loading a magnet link")},
|
||||
{BitTorrent::TorrentState::ForcedDownloadingMetadata, tr("[F] Downloading metadata", "Used when forced to load a magnet link. You probably shouldn't translate the F.")},
|
||||
{BitTorrent::TorrentState::ForcedDownloading, tr("[F] Downloading", "Used when the torrent is forced started. You probably shouldn't translate the F.")},
|
||||
{BitTorrent::TorrentState::Uploading, tr("Seeding", "Torrent is complete and in upload-only mode")},
|
||||
{BitTorrent::TorrentState::StalledUploading, tr("Seeding", "Torrent is complete and in upload-only mode")},
|
||||
|
@ -664,6 +666,7 @@ QIcon getIconByState(const BitTorrent::TorrentState state)
|
|||
case BitTorrent::TorrentState::Downloading:
|
||||
case BitTorrent::TorrentState::ForcedDownloading:
|
||||
case BitTorrent::TorrentState::DownloadingMetadata:
|
||||
case BitTorrent::TorrentState::ForcedDownloadingMetadata:
|
||||
return getDownloadingIcon();
|
||||
case BitTorrent::TorrentState::StalledDownloading:
|
||||
return getStalledDownloadingIcon();
|
||||
|
@ -704,6 +707,7 @@ QColor getDefaultColorByState(const BitTorrent::TorrentState state)
|
|||
case BitTorrent::TorrentState::Downloading:
|
||||
case BitTorrent::TorrentState::ForcedDownloading:
|
||||
case BitTorrent::TorrentState::DownloadingMetadata:
|
||||
case BitTorrent::TorrentState::ForcedDownloadingMetadata:
|
||||
if (!dark)
|
||||
return {34, 139, 34}; // Forest Green
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue