mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
FIX:fixed the display error caused by the incorrect remain
Change-Id: I9c0bb7325d4d9ae043aa3dc868f94102e3aa24ae
This commit is contained in:
@@ -82,6 +82,7 @@ bool AMSinfo::parse_ams_info(Ams *ams)
|
|||||||
}
|
}
|
||||||
|
|
||||||
info.material_remain = it->second->remain < 0 ? 100 :it->second->remain;
|
info.material_remain = it->second->remain < 0 ? 100 :it->second->remain;
|
||||||
|
info.material_remain = it->second->remain > 100 ? 100 :info.material_remain;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
info.can_id = it->second->id;
|
info.can_id = it->second->id;
|
||||||
|
|||||||
Reference in New Issue
Block a user