WildRikku / OctoPrint-SpoolManager

Plugin for managing spools and all their usage metadata
GNU Affero General Public License v3.0
7 stars 0 forks source link

spool_selected event is also sent when selected spools are loaded #4

Open WildRikku opened 1 month ago

WildRikku commented 1 month ago

I was confused why the spool_selected event payload appeared in the log every time I uploaded a Gcode file. Turns out that when a file is uploaded or selected, SpoolManager checks if the currently selected spool has enough filament for that file, for which it needs to load the selected spool(s). In my opinion, while that might throw an event, that event should be "spool loaded", not "spool selected", because the selection has not changed.