add Default to dropdown since the GUI allows it

This commit is contained in:
Mark Yu 2025-07-13 18:33:53 -04:00
commit b2189ae724

View file

@ -66,9 +66,8 @@
document.getElementById("setInactiveMinutes").checked = true; document.getElementById("setInactiveMinutes").checked = true;
document.getElementById("inactiveMinutes").value = values.inactiveSeedingTimeLimit; document.getElementById("inactiveMinutes").value = values.inactiveSeedingTimeLimit;
} }
if (values.shareLimitAction >= 0)
document.getElementById("action").value = values.shareLimitAction.toString();
document.getElementById("action").value = values.shareLimitAction.toString();
} }
shareLimitChanged(); shareLimitChanged();
@ -193,6 +192,7 @@
<div style="margin-left: 40px; margin-bottom: 5px;"> <div style="margin-left: 40px; margin-bottom: 5px;">
<label id="actionListLabel" for="action">QBT_TR(Action when the limit is reached)QBT_TR[CONTEXT=UpDownRatioDialog]</label> <label id="actionListLabel" for="action">QBT_TR(Action when the limit is reached)QBT_TR[CONTEXT=UpDownRatioDialog]</label>
<select id="action" aria-labelledby="actionListLabel"> <select id="action" aria-labelledby="actionListLabel">
<option value="-1">Default</option>
<option value="0">Stop torrent</option> <option value="0">Stop torrent</option>
<option value="1">Remove torrent</option> <option value="1">Remove torrent</option>
<option value="3">Remove torrent and its content</option> <option value="3">Remove torrent and its content</option>