Skip to content

Commit

Permalink
DEV9: Properly disable/enable the DHCP label
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLastRar authored and stenzek committed Apr 23, 2024
1 parent 346823f commit 5af5fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pcsx2-qt/Settings/DEV9SettingsWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ void DEV9SettingsWidget::onEthDeviceTypeChanged(int index)
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);
onEthDHCPInterceptChanged(m_ui.ethInterceptDHCP->checkState());
}
Expand Down
2 changes: 1 addition & 1 deletion pcsx2-qt/Settings/DEV9SettingsWidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_3">
<widget class="QLabel" name="ethInterceptDHCPLabel">
<property name="text">
<string>Intercept DHCP:</string>
</property>
Expand Down

0 comments on commit 5af5fe8

Please sign in to comment.