Browse Source

Move "embedded tracker" options to qbt section

adaptive-webui-19844
Chocobo1 4 years ago
parent
commit
bd672c4c4e
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 6
      src/gui/advancedsettings.cpp
  2. 32
      src/webui/www/private/views/preferences.html

6
src/gui/advancedsettings.cpp

@ -82,6 +82,9 @@ namespace
DOWNLOAD_TRACKER_FAVICON, DOWNLOAD_TRACKER_FAVICON,
SAVE_PATH_HISTORY_LENGTH, SAVE_PATH_HISTORY_LENGTH,
ENABLE_SPEED_WIDGET, ENABLE_SPEED_WIDGET,
// embedded tracker
TRACKER_STATUS,
TRACKER_PORT,
// libtorrent section // libtorrent section
LIBTORRENT_HEADER, LIBTORRENT_HEADER,
ASYNC_IO_THREADS, ASYNC_IO_THREADS,
@ -119,9 +122,6 @@ namespace
VALIDATE_HTTPS_TRACKER_CERTIFICATE, VALIDATE_HTTPS_TRACKER_CERTIFICATE,
#endif #endif
BLOCK_PEERS_ON_PRIVILEGED_PORTS, BLOCK_PEERS_ON_PRIVILEGED_PORTS,
// embedded tracker
TRACKER_STATUS,
TRACKER_PORT,
// seeding // seeding
CHOKING_ALGORITHM, CHOKING_ALGORITHM,
SEED_CHOKING_ALGORITHM, SEED_CHOKING_ALGORITHM,

32
src/webui/www/private/views/preferences.html

@ -931,6 +931,22 @@
<input type="checkbox" id="resolvePeerCountries"> <input type="checkbox" id="resolvePeerCountries">
</td> </td>
</tr> </tr>
<tr>
<td>
<label for="enableEmbeddedTracker">QBT_TR(Enable embedded tracker:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td>
<td>
<input type="checkbox" id="enableEmbeddedTracker" />
</td>
</tr>
<tr>
<td>
<label for="embeddedTrackerPort">QBT_TR(Embedded tracker port:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td>
<td>
<input type="text" id="embeddedTrackerPort" style="width: 15em;" />
</td>
</tr>
</table> </table>
</fieldset> </fieldset>
<fieldset class="settings"> <fieldset class="settings">
@ -1107,22 +1123,6 @@
<input type="checkbox" id="blockPeersOnPrivilegedPorts" /> <input type="checkbox" id="blockPeersOnPrivilegedPorts" />
</td> </td>
</tr> </tr>
<tr>
<td>
<label for="enableEmbeddedTracker">QBT_TR(Enable embedded tracker:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td>
<td>
<input type="checkbox" id="enableEmbeddedTracker" />
</td>
</tr>
<tr>
<td>
<label for="embeddedTrackerPort">QBT_TR(Embedded tracker port:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td>
<td>
<input type="text" id="embeddedTrackerPort" style="width: 15em;" />
</td>
</tr>
<tr> <tr>
<td> <td>
<label for="uploadSlotsBehavior">QBT_TR(Upload slots behavior:)QBT_TR[CONTEXT=OptionsDialog]&nbsp;<a href="https://www.libtorrent.org/reference-Settings.html#choking_algorithm" target="_blank">(?)</a></label> <label for="uploadSlotsBehavior">QBT_TR(Upload slots behavior:)QBT_TR[CONTEXT=OptionsDialog]&nbsp;<a href="https://www.libtorrent.org/reference-Settings.html#choking_algorithm" target="_blank">(?)</a></label>

Loading…
Cancel
Save