feat(gui): warn when the hotend rack inventory falls short of the sliced plate

Follow-up to the rack-aware pre-print checks: after the blocking checks
pass, warn (without disabling Send) when the plate needs more matching
hotends than the rack printer currently holds - suggesting rack setup,
a nozzle info refresh, or a re-slice to avoid filament waste - or when
the only matches rely on unreliable nozzle information.

Text-only warning rows; this message board has no refresh or
don't-show-again buttons.
This commit is contained in:
SoftFever
2026-07-13 00:55:52 +08:00
parent 2fecfc291f
commit 30aa7d9557
5 changed files with 99 additions and 0 deletions

View File

@@ -521,6 +521,9 @@ public:
// Block Send while a rack printer is still reading its hotend information.
bool CheckErrorRackStatus(MachineObject* obj_);
// Warn (without blocking) when the rack inventory looks insufficient for the sliced plate:
// fewer matching hotends than the plate needs, or matches relying on unreliable nozzle info.
void CheckWarningRackStatus(MachineObject* obj_);
// Compare the slicing file's nozzle requirements (validity, flow, diameter) against the
// printer; the rack extruder is checked against its whole inventory (mounted + rack).
bool CheckErrorExtruderNozzleWithSlicing(MachineObject* obj_);//return true if no errors