Stop slicing if an error occurred

If the user has auto-slicing enabled, this causes the indeterminate progress bar to appear.
If the user doesn't have auto-slicing enabled, this causes the slice button to reappear.

Both of these indicate that something has caused slicing to be interrupted. The message should make clear why.

Contributes to issue CURA-6568.
This commit is contained in:
Ghostkeeper 2021-07-14 17:02:55 +02:00
parent 399b378ba6
commit 26487c5b31
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -937,6 +937,7 @@ class CuraEngineBackend(QObject, Backend):
)
message.actionTriggered.connect(self._reportBackendError)
message.show()
self.stopSlicing()
else:
Logger.log("d", "Backend finished slicing. Resetting process and socket.")
self._process = None # type: ignore