mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
WebUI: Fix initial state of the alternative speed limits icon
This commit is contained in:
parent
f43d8f1139
commit
280aa95ef6
@ -297,7 +297,7 @@ window.addEvent('load', function () {
|
|||||||
new Request({url: 'command/alternativeSpeedLimitsEnabled',
|
new Request({url: 'command/alternativeSpeedLimitsEnabled',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
onSuccess : function (isEnabled) {
|
onSuccess : function (isEnabled) {
|
||||||
alternativeSpeedsLimit = !!isEnabled;
|
alternativeSpeedsLimit = !!parseInt(isEnabled);
|
||||||
if (alternativeSpeedsLimit)
|
if (alternativeSpeedsLimit)
|
||||||
$('alternativeSpeedLimits').src = "images/slow.png"
|
$('alternativeSpeedLimits').src = "images/slow.png"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user