mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed several issues with Web UI
This commit is contained in:
parent
74f0737903
commit
34ba69e319
6 changed files with 17 additions and 11 deletions
|
@ -109,9 +109,12 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||
event["progress"] = QVariant(h.progress());
|
||||
event["dlspeed"] = QVariant(tr("%1/s", "e.g. 120 KiB/s").arg(misc::friendlyUnit(h.download_payload_rate())));
|
||||
if(BTSession->isQueueingEnabled()) {
|
||||
event["priority"] = QVariant(h.queue_position());
|
||||
if(h.queue_position() >= 0)
|
||||
event["priority"] = QVariant(QString::number(h.queue_position()));
|
||||
else
|
||||
event["priority"] = "*";
|
||||
} else {
|
||||
event["priority"] = -1;
|
||||
event["priority"] = "*";
|
||||
}
|
||||
event["upspeed"] = QVariant(tr("%1/s", "e.g. 120 KiB/s").arg(misc::friendlyUnit(h.upload_payload_rate())));
|
||||
QString seeds = QString::number(h.num_seeds());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue