mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Disabled file prioritizing for seeding torrents
- Added file prioritizing to Web UI
This commit is contained in:
parent
d4524993ee
commit
aeb2c06e0f
10 changed files with 106 additions and 52 deletions
|
@ -111,23 +111,7 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
|
|||
}
|
||||
file["size"] = misc::friendlyUnit((double)fi->size);
|
||||
file["progress"] = fp[i]/(double)fi->size;
|
||||
switch(priorities[i]) {
|
||||
case IGNORED:
|
||||
file["priority"] = tr("Ignored");
|
||||
break;
|
||||
case NORMAL:
|
||||
file["priority"] = tr("Normal", "Normal (priority)");
|
||||
break;
|
||||
case HIGH:
|
||||
file["priority"] = tr("High", "High (priority)");
|
||||
break;
|
||||
case MAXIMUM:
|
||||
file["priority"] = tr("Maximum", "Maximum (priority)");
|
||||
break;
|
||||
default:
|
||||
qDebug("Unhandled priority, setting NORMAL, priority was %d", priorities[i]);
|
||||
file["priority"] = tr("Normal", "Normal (priority)");
|
||||
}
|
||||
file["priority"] = priorities[i];
|
||||
files << file;
|
||||
++i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue