jukebox42 / Octoprint-PrusaMMU

An Octoprint plugin that adds MMU support.
GNU Affero General Public License v3.0
13 stars 2 forks source link

Rewrite using events #11

Closed jukebox42 closed 1 year ago

jukebox42 commented 1 year ago

A major refactor, the current implementation is a bit hard to track when things are being updated. This PR aims to simplify that by introducing events instead of firing inline. This also has the added benefit of always being non-blocking.

Other things included

Note: this version introduces a tiny bug where it will show "Changing filament..." at the very end of a print during the unload step instead of "Unloading...". It really is just unloading. It doesn't do any harm, it's just how the JS logic is written now. I'm going to leave that one and fix it in a future release.