mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX:fixed the display error caused by the incorrect remain
Change-Id: I9c0bb7325d4d9ae043aa3dc868f94102e3aa24ae
This commit is contained in:
parent
1ae4a74687
commit
de0b0508eb
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue