1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

WebUI: don't disable combobox for file priority

Closes #17794.
PR #17797.
This commit is contained in:
Chocobo1 2022-10-01 12:49:02 +08:00 committed by GitHub
parent 616057a433
commit 2b385e5f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,7 +182,6 @@ window.qBittorrent.PropFiles = (function() {
select.set('id', 'comboPrio' + id); select.set('id', 'comboPrio' + id);
select.set('data-id', id); select.set('data-id', id);
select.set('data-file-id', fileId); select.set('data-file-id', fileId);
select.set('disabled', is_seed);
select.addClass('combo_priority'); select.addClass('combo_priority');
select.addEvent('change', fileComboboxChanged); select.addEvent('change', fileComboboxChanged);
@ -204,9 +203,6 @@ window.qBittorrent.PropFiles = (function() {
if (parseInt(combobox.value) !== selectedPriority) if (parseInt(combobox.value) !== selectedPriority)
selectComboboxPriority(combobox, selectedPriority); selectComboboxPriority(combobox, selectedPriority);
if (combobox.disabled !== is_seed)
combobox.disabled = is_seed;
}; };
const selectComboboxPriority = function(combobox, priority) { const selectComboboxPriority = function(combobox, priority) {