From 0186f44bf46bf36fb1506facb8ef2801ca035296 Mon Sep 17 00:00:00 2001 From: xavier2k6 <42386382+xavier2k6@users.noreply.github.com> Date: Sat, 4 Nov 2023 09:09:47 +0000 Subject: [PATCH] Use appropriate icon for "moving" torrents in transfer list PR #19821. --- src/gui/transferlistmodel.cpp | 4 +++- src/gui/transferlistmodel.h | 1 + src/webui/www/private/scripts/dynamicTable.js | 5 ++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gui/transferlistmodel.cpp b/src/gui/transferlistmodel.cpp index c58f95cbb..272ea253c 100644 --- a/src/gui/transferlistmodel.cpp +++ b/src/gui/transferlistmodel.cpp @@ -117,6 +117,7 @@ TransferListModel::TransferListModel(QObject *parent) , m_completedIcon {UIThemeManager::instance()->getIcon(u"checked-completed"_s, u"completed"_s)} , m_downloadingIcon {UIThemeManager::instance()->getIcon(u"downloading"_s)} , m_errorIcon {UIThemeManager::instance()->getIcon(u"error"_s)} + , m_movingIcon {UIThemeManager::instance()->getIcon(u"set-location"_s)} , m_pausedIcon {UIThemeManager::instance()->getIcon(u"stopped"_s, u"media-playback-pause"_s)} , m_queuedIcon {UIThemeManager::instance()->getIcon(u"queued"_s)} , m_stalledDLIcon {UIThemeManager::instance()->getIcon(u"stalledDL"_s)} @@ -724,8 +725,9 @@ QIcon TransferListModel::getIconByState(const BitTorrent::TorrentState state) co case BitTorrent::TorrentState::CheckingDownloading: case BitTorrent::TorrentState::CheckingUploading: case BitTorrent::TorrentState::CheckingResumeData: - case BitTorrent::TorrentState::Moving: return m_checkingIcon; + case BitTorrent::TorrentState::Moving: + return m_movingIcon; case BitTorrent::TorrentState::Unknown: case BitTorrent::TorrentState::MissingFiles: case BitTorrent::TorrentState::Error: diff --git a/src/gui/transferlistmodel.h b/src/gui/transferlistmodel.h index eeea46ef7..827072af0 100644 --- a/src/gui/transferlistmodel.h +++ b/src/gui/transferlistmodel.h @@ -138,6 +138,7 @@ private: QIcon m_completedIcon; QIcon m_downloadingIcon; QIcon m_errorIcon; + QIcon m_movingIcon; QIcon m_pausedIcon; QIcon m_queuedIcon; QIcon m_stalledDLIcon; diff --git a/src/webui/www/private/scripts/dynamicTable.js b/src/webui/www/private/scripts/dynamicTable.js index 1ebf2ae40..e66946348 100644 --- a/src/webui/www/private/scripts/dynamicTable.js +++ b/src/webui/www/private/scripts/dynamicTable.js @@ -1003,10 +1003,13 @@ window.qBittorrent.DynamicTable = (function() { case "checkingUP": case "queuedForChecking": case "checkingResumeData": - case "moving": state = "force-recheck"; img_path = "images/force-recheck.svg"; break; + case "moving": + state = "moving"; + img_path = "images/set-location.svg"; + break; case "error": case "unknown": case "missingFiles": -- 2.11.4.GIT