mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 17:53:08 -07:00
- Added priority actions in Web UI
This commit is contained in:
parent
4c6359276c
commit
330905da5e
8 changed files with 43 additions and 13 deletions
|
@ -81,6 +81,11 @@ void EventManager::modifiedTorrent(QTorrentHandle h)
|
|||
if(!h.is_seed()) {
|
||||
event["progress"] = QVariant(h.progress());
|
||||
event["dlspeed"] = QVariant(h.download_payload_rate());
|
||||
if(BTSession->isQueueingEnabled()) {
|
||||
event["priority"] = QVariant(h.queue_position());
|
||||
} else {
|
||||
event["priority"] = -1;
|
||||
}
|
||||
}
|
||||
event["upspeed"] = QVariant(h.upload_payload_rate());
|
||||
event["seed"] = QVariant(h.is_seed());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue