From 18b982dc6afd71efb50b6a8e977b70c00184dd74 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Thu, 21 Oct 2021 03:19:45 -0500 Subject: [PATCH] DEV9: Clean up config code --- pcsx2/DEV9/ConfigUI.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pcsx2/DEV9/ConfigUI.cpp b/pcsx2/DEV9/ConfigUI.cpp index 3d6badbb7d..29cd0ae159 100644 --- a/pcsx2/DEV9/ConfigUI.cpp +++ b/pcsx2/DEV9/ConfigUI.cpp @@ -141,14 +141,15 @@ public: adapter_api_name_list.Add(""); for (const NetApi& type : m_api_list) adapter_api_name_list.Add(NetApiToWxString(type)); + auto* eth_adapter_api_label = new wxStaticText(this, wxID_ANY, _("Ethernet Device Type:")); + auto* eth_adapter_label = new wxStaticText(this, wxID_ANY, _("Ethernet Device:")); + auto* intercept_dhcp_label = new wxStaticText(this, wxID_ANY, _("Intercept DHCP:")); + auto* ps2_addr_label = new wxStaticText(this, wxID_ANY, _("PS2 Address:")); m_eth_adapter_api = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, adapter_api_name_list); - auto* eth_adapter_label = new wxStaticText(this, wxID_ANY, _("Ethernet Device:")); - m_eth_adapter = new wxChoice(this, wxID_ANY); - auto* intercept_dhcp_label = new wxStaticText(this, wxID_ANY, _("Intercept DHCP:")); - m_intercept_dhcp = new wxCheckBox(this, wxID_ANY, _("Enabled")); - auto* ps2_addr_label = new wxStaticText(this, wxID_ANY, _("PS2 Address:")); - m_ps2_address = new wxTextCtrl(this, wxID_ANY); + m_eth_adapter = new wxChoice(this, wxID_ANY); + m_intercept_dhcp = new wxCheckBox(this, wxID_ANY, _("Enabled")); + m_ps2_address = new wxTextCtrl(this, wxID_ANY); m_ps2_address->SetMinSize(wxSize(150, -1)); eth_adapter_box->Add(eth_adapter_api_label, wxGBPosition(0, 0), wxDefaultSpan, wxALIGN_RIGHT | wxALIGN_CENTRE_VERTICAL);