mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
- qBittorrent can now identify itself as KTorrent too
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
<option value="qB">_(qBittorrent)</option>
|
||||
<option value="AZ">_(Vuze)</option>
|
||||
<option value="UT">_(µTorrent)</option>
|
||||
<option value="KT">_(KTorrent)</option>
|
||||
</select>
|
||||
|
||||
_(Version:) <input type="text" id="peer_version_text" style="width: 7em;" />
|
||||
@@ -514,11 +515,19 @@ updateSpoofingSettings = function() {
|
||||
$('peer_build_text').set('disabled', 'true');
|
||||
$('peer_build_text').set('value', '');
|
||||
} else {
|
||||
// qBittorrent
|
||||
$('peer_version_text').set('disabled', 'true');
|
||||
$('peer_version_text').set('value', '');
|
||||
$('peer_build_text').set('disabled', 'true');
|
||||
$('peer_build_text').set('value', '');
|
||||
if(peer_id == "KT") {
|
||||
// KTorrent
|
||||
$('peer_version_text').removeProperty('disabled');
|
||||
$('peer_version_text').set('value', '3.3.2');
|
||||
$('peer_build_text').set('disabled', 'true');
|
||||
$('peer_build_text').set('value', '');
|
||||
} else {
|
||||
// qBittorrent
|
||||
$('peer_version_text').set('disabled', 'true');
|
||||
$('peer_version_text').set('value', '');
|
||||
$('peer_build_text').set('disabled', 'true');
|
||||
$('peer_build_text').set('value', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user