Browse Source

Remove "requires restart" from network interface settings

Network interface changes are applied on the fly. A restart is not required.
adaptive-webui-19844
an0n666 5 years ago
parent
commit
1d3bb705c8
  1. 4
      src/gui/advancedsettings.cpp
  2. 4
      src/webui/www/private/views/preferences.html

4
src/gui/advancedsettings.cpp

@ -531,10 +531,10 @@ void AdvancedSettings::loadAdvancedSettings()
m_comboBoxInterface.addItem(session->networkInterfaceName(), currentInterface); m_comboBoxInterface.addItem(session->networkInterfaceName(), currentInterface);
m_comboBoxInterface.setCurrentIndex(i); m_comboBoxInterface.setCurrentIndex(i);
} }
addRow(NETWORK_IFACE, tr("Network Interface (requires restart)"), &m_comboBoxInterface); addRow(NETWORK_IFACE, tr("Network Interface"), &m_comboBoxInterface);
// Network interface address // Network interface address
updateInterfaceAddressCombo(); updateInterfaceAddressCombo();
addRow(NETWORK_IFACE_ADDRESS, tr("Optional IP Address to bind to (requires restart)"), &m_comboBoxInterfaceAddress); addRow(NETWORK_IFACE_ADDRESS, tr("Optional IP Address to bind to"), &m_comboBoxInterfaceAddress);
// Announce IP // Announce IP
m_lineEditAnnounceIP.setText(session->announceIP()); m_lineEditAnnounceIP.setText(session->announceIP());
addRow(ANNOUNCE_IP, tr("IP Address to report to trackers (requires restart)"), &m_lineEditAnnounceIP); addRow(ANNOUNCE_IP, tr("IP Address to report to trackers (requires restart)"), &m_lineEditAnnounceIP);

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

@ -842,7 +842,7 @@
<table> <table>
<tr> <tr>
<td> <td>
<label for="networkInterface">QBT_TR(Network Interface (requires restart):)QBT_TR[CONTEXT=OptionsDialog]</label> <label for="networkInterface">QBT_TR(Network Interface:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td> </td>
<td> <td>
<select id="networkInterface" style="width: 15em;"> <select id="networkInterface" style="width: 15em;">
@ -851,7 +851,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<label for="optionalIPAddressToBind">QBT_TR(Optional IP Address to bind to (requires restart):)QBT_TR[CONTEXT=OptionsDialog]</label> <label for="optionalIPAddressToBind">QBT_TR(Optional IP Address to bind to:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td> </td>
<td> <td>
<select id="optionalIPAddressToBind" style="width: 15em;"> <select id="optionalIPAddressToBind" style="width: 15em;">

Loading…
Cancel
Save