"Upload and print" still shows the confirmation modal — it should print without one (the modal is Upload-only) #81
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When you use Upload and print in OrcaSlicer, the bridge pops up the print-start confirmation modal even though it's also starting the print. The modal makes it look like you still need to confirm the AMS/Spoolman slot mapping, but the printer has already started — so the modal is spurious there. That modal really belongs to plain Upload, where it lets you review/assign slots and then start.
Steps to Reproduce
Expected Behavior
Actual Behavior
With Upload and print, the modal shows up and the print starts anyway — so the modal is misleading and redundant.
Notes
In
handle_file_upload, the auto-print path (print=true) already clearsfile_ready, so in principle the modal shouldn't open on its own — but it still does. The fix should make sure the confirmation modal never opens whenprint=true; it should only open for upload-only.Environment
a16062f)"Upload and print" starts the print immediately, ignoring the print-start confirmation dialogto "Upload and print" still shows the confirmation modal — it should print without one (the modal is Upload-only)Thanks for the detailed report. Looking at the code:
handle_file_upload, whenprint=truethe bridge setsfile_ready = ""(empty) before starting the print, so the frontend poll should never see a non-emptyfile_readyduring an auto-print.s.file_ready && s.print_state === "standby"— iffile_readyis empty, no modal.I cannot reproduce this locally. Could you check the browser console (F12) at the moment the modal appears and tell me:
s.file_readyshow in the poll response at that moment? (Network tab →/api/stateresponse)This looks like it could be a timing issue specific to your setup (network latency between OrcaSlicer and the bridge, or a fast poll tick catching a transitional state).
After a long debug session, found out it was a missconfig on my part. Closing the issue