mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-18 10:32:31 -07:00
FIX:Add ams hub name
jira:[STUDIO-13910] Change-Id: I2c22f4f468ab7cfa77ebb91338fbd5d09114cf80 (cherry picked from commit 3d300f92b07bfa35e975d84ce2d16b5edba03156)
This commit is contained in:
parent
7ab6a22601
commit
721c93e3d8
1 changed files with 6 additions and 2 deletions
|
|
@ -145,7 +145,6 @@ MachineInfoPanel::MachineInfoPanel(wxWindow* parent, wxWindowID id, const wxPoin
|
|||
|
||||
|
||||
m_ahb_panel = new AmsPanel(this, wxID_ANY);
|
||||
m_ahb_panel->m_staticText_ams->SetLabel("AMS HUB");
|
||||
m_ams_content_sizer->Add(m_ahb_panel, 0, wxEXPAND, 0);
|
||||
|
||||
|
||||
|
|
@ -688,6 +687,11 @@ void MachineInfoPanel::update_ams_ext(MachineObject *obj)
|
|||
|
||||
|
||||
m_ahb_panel->Show();
|
||||
wxString hub_name = "-";
|
||||
if (!obj->module_vers.find("ahb")->second.product_name.empty()) {
|
||||
hub_name = obj->module_vers.find("ahb")->second.product_name;
|
||||
}
|
||||
|
||||
|
||||
wxString hub_sn = "-";
|
||||
if (!obj->module_vers.find("ahb")->second.sn.empty()) {
|
||||
|
|
@ -744,7 +748,7 @@ void MachineInfoPanel::update_ams_ext(MachineObject *obj)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
m_ahb_panel->m_staticText_ams->SetLabel(hub_name);
|
||||
m_ahb_panel->m_staticText_ams_sn_val->SetLabelText(hub_sn);
|
||||
m_ahb_panel->m_staticText_ams_ver_val->SetLabelText(hub_ver);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue