Update SelectMachine.cpp

This commit is contained in:
QIDI TECH
2025-02-25 16:11:20 +08:00
parent fc45eaa121
commit dcdb92f45e

View File

@@ -1278,7 +1278,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater, wxString title)
}); });
//w42 //w42
m_comboBox_printer->Bind(wxEVT_COMBOBOX, [this](wxCommandEvent& evt) { /*m_comboBox_printer->Bind(wxEVT_COMBOBOX, [this](wxCommandEvent& evt) {
wxString selected = evt.GetString(); wxString selected = evt.GetString();
MachineObject* selected_machine = nullptr; MachineObject* selected_machine = nullptr;
if (!m_isNetMode) { if (!m_isNetMode) {
@@ -1301,7 +1301,7 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater, wxString title)
} }
m_sizer_main->Layout(); m_sizer_main->Layout();
evt.Skip(); evt.Skip();
}); });*/
m_isSwitch = new wxCheckBox(switch_button_panel, wxID_ANY, _L("Switch to Device tab"), wxDefaultPosition); m_isSwitch = new wxCheckBox(switch_button_panel, wxID_ANY, _L("Switch to Device tab"), wxDefaultPosition);
m_isSwitch->SetValue((wxGetApp().app_config->get("switch to device tab after upload") == "true") ? true : false); m_isSwitch->SetValue((wxGetApp().app_config->get("switch to device tab after upload") == "true") ? true : false);