mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-12 22:36:03 -06:00
ENH:show n3f/n3s version info
jira:[for n3s] Change-Id: Ia0056dfdf7157036008cc63a37c9fd8076063a6a (cherry picked from commit a44ff5a95a6774b4eed1238bde12d0a750c24a10)
This commit is contained in:
parent
eba2e0af78
commit
21c69a99e6
3 changed files with 37 additions and 11 deletions
|
|
@ -688,9 +688,23 @@ void MachineInfoPanel::update_ams_ext(MachineObject *obj)
|
|||
amspanel->Show();
|
||||
|
||||
auto it = ver_list.find(atoi(iter->first.c_str()));
|
||||
|
||||
if (it == ver_list.end()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto ams_id = std::stoi(iter->second->id);
|
||||
|
||||
wxString ams_text = wxString::Format("AMS%s", std::to_string(ams_id + 1));
|
||||
size_t pos = it->second.name.find('/');
|
||||
wxString ams_device_name = "AMS-%s";
|
||||
|
||||
if (pos != std::string::npos) {
|
||||
wxString result = it->second.name.substr(0, pos);
|
||||
result.MakeUpper();
|
||||
ams_device_name = result + "-%s";
|
||||
}
|
||||
|
||||
wxString ams_text = wxString::Format(ams_device_name, std::to_string(ams_id + 1));
|
||||
ams_name = ams_text;
|
||||
|
||||
if (it == ver_list.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue