mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
ENH:blocking send/send all on p1p printers
Change-Id: If6ed8056790211d6ffa8237136318768e1a7f5d7
This commit is contained in:
parent
08b40dc5e8
commit
09ab775667
6 changed files with 30 additions and 9 deletions
|
@ -367,18 +367,22 @@ void MachineInfoPanel::update_version_text(MachineObject* obj)
|
|||
} else {
|
||||
auto ota_it = obj->new_ver_list.find("ota");
|
||||
if (ota_it == obj->new_ver_list.end()) {
|
||||
wxString ver_text = wxString::Format("%s(%s)", it->second.sw_ver, _L("Latest version"));
|
||||
m_staticText_ver_val->SetLabelText(ver_text);
|
||||
m_ota_new_version_img->Hide();
|
||||
if (it != obj->module_vers.end()) {
|
||||
wxString ver_text = wxString::Format("%s(%s)", it->second.sw_ver, _L("Latest version"));
|
||||
m_staticText_ver_val->SetLabelText(ver_text);
|
||||
m_ota_new_version_img->Hide();
|
||||
}
|
||||
} else {
|
||||
if (ota_it->second.sw_new_ver != ota_it->second.sw_ver) {
|
||||
m_ota_new_version_img->Show();
|
||||
wxString ver_text = wxString::Format("%s->%s", ota_it->second.sw_ver, ota_it->second.sw_new_ver);
|
||||
m_staticText_ver_val->SetLabelText(ver_text);
|
||||
} else {
|
||||
m_ota_new_version_img->Hide();
|
||||
wxString ver_text = wxString::Format("%s(%s)", it->second.sw_ver, _L("Latest version"));
|
||||
m_staticText_ver_val->SetLabelText(ver_text);
|
||||
if (it != obj->module_vers.end()) {
|
||||
m_ota_new_version_img->Hide();
|
||||
wxString ver_text = wxString::Format("%s(%s)", it->second.sw_ver, _L("Latest version"));
|
||||
m_staticText_ver_val->SetLabelText(ver_text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue