DEV9: Properly disable/enable the DHCP label

This commit is contained in:
TheLastRar 2024-04-16 23:11:06 +01:00 committed by Connor McLaughlin
parent 346823f7c2
commit 5af5fe8387
2 changed files with 2 additions and 1 deletions

View File

@ -336,6 +336,7 @@ void DEV9SettingsWidget::onEthDeviceTypeChanged(int index)
break; break;
} }
m_ui.ethInterceptDHCPLabel->setEnabled((m_adapter_options & AdapterOptions::DHCP_ForcedOn) == AdapterOptions::None);
m_ui.ethInterceptDHCP->setEnabled((m_adapter_options & AdapterOptions::DHCP_ForcedOn) == AdapterOptions::None); m_ui.ethInterceptDHCP->setEnabled((m_adapter_options & AdapterOptions::DHCP_ForcedOn) == AdapterOptions::None);
onEthDHCPInterceptChanged(m_ui.ethInterceptDHCP->checkState()); onEthDHCPInterceptChanged(m_ui.ethInterceptDHCP->checkState());
} }

View File

@ -101,7 +101,7 @@
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="ethInterceptDHCPLabel">
<property name="text"> <property name="text">
<string>Intercept DHCP:</string> <string>Intercept DHCP:</string>
</property> </property>