mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 15:35:39 +02:00
The post-print cleanup picks what to delete from the finished archive. When a print finished while Bambuddy was stopped and the file was then reprinted from the printer's screen, startup reconciliation closed the old archive and the cleanup deleted the file the printer was printing. The cleanup now skips any candidate that matches the printer's current gcode_file or job name while the printer is busy. Finished, failed and idle states hold nothing back, so the ghost-print cleanup is unchanged; a ghost replay's file is deleted by its own end-of-print cleanup. The cleanup moves out of on_print_complete into its own function.