mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-01 11:47:46 +02:00
The queue item status update (printing → completed/failed) was placed after `if not archive_id: return` in on_print_complete. When archive lookup failed (app restart mid-print, manual deletion), the function returned early and the queue item stayed stuck in "printing" forever. Over multiple print cycles, stale items accumulated — showing double the actual printer count in the "Printing" stat and completed prints remaining in the "Currently Printing" section. Move the entire queue item status update block (status transition, MQTT relay, queue-completed notification, auto-power-off) to before the archive_id early return, matching the pattern used for SD card cleanup.