mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 04:24:23 +00:00
BUGFIX: Hide seeding torrents files priorities in Web UI
This commit is contained in:
parent
2e51e69cc9
commit
223fd4f0ba
@ -10,6 +10,7 @@
|
||||
- FEATURE: Added error state for torrents (error is displayed in a tooltip)
|
||||
- FEATURE: Added filter for paused/error torrents
|
||||
- FEATURE: Add Check/Uncheck all feature in Web UI
|
||||
- BUGFIX: Hide seeding torrents files priorities in Web UI
|
||||
- COSMETIC: Display peers country name in tooltip
|
||||
- COSMETIC: Display number of torrents in transfers tab label
|
||||
|
||||
|
@ -113,6 +113,8 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
|
||||
else
|
||||
file["progress"] = 1.; // Empty file...
|
||||
file["priority"] = priorities[i];
|
||||
if(i == 0)
|
||||
file["is_seed"] = h.is_seed();
|
||||
files << file;
|
||||
++i;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
var waitingTorrentFiles=false;
|
||||
var is_seed = true;
|
||||
var current_hash = "";
|
||||
|
||||
var setCBState = function(state) {
|
||||
@ -147,7 +148,7 @@ var createPriorityCombo = function(id, selected_prio) {
|
||||
if(selected_prio == 7)
|
||||
opt.setAttribute('selected', '');
|
||||
opt.injectInside(select);
|
||||
if(selected_prio < 1) {
|
||||
if(is_seed || selected_prio < 1) {
|
||||
select.addClass("invisible");
|
||||
} else {
|
||||
select.removeClass("invisible");
|
||||
@ -194,7 +195,7 @@ var createPriorityCombo = function(id, selected_prio) {
|
||||
tds[i].getChildren('input')[0].removeProperty('checked')
|
||||
} else {
|
||||
if(i == 4) {
|
||||
if(row[i] > 0) {
|
||||
if(!is_seed && row[i] > 0) {
|
||||
tds[i].getChildren('select').set('value', row[i]);
|
||||
$('comboPrio'+id).removeClass("invisible");
|
||||
} else {
|
||||
@ -275,6 +276,9 @@ var createPriorityCombo = function(id, selected_prio) {
|
||||
// Update Trackers data
|
||||
var i=0;
|
||||
files.each(function(file){
|
||||
if(i == 0) {
|
||||
is_seed = file.is_seed;
|
||||
}
|
||||
var row = new Array();
|
||||
row.length = 4;
|
||||
row[0] = file.priority;
|
||||
|
Loading…
x
Reference in New Issue
Block a user