mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:48:59 +08:00
Added a bit of error handling
This commit is contained in:
parent
c0d167e751
commit
31ed8400ef
@ -179,6 +179,12 @@ class CuraEngineBackend(Backend):
|
|||||||
|
|
||||||
self._onChanged()
|
self._onChanged()
|
||||||
|
|
||||||
|
def _onSocketError(self, error):
|
||||||
|
super()._onSocketError(error)
|
||||||
|
self._slicing = False
|
||||||
|
self.processingProgress.emit(0)
|
||||||
|
Logger.log("e", "A socket error caused the connection to be reset")
|
||||||
|
|
||||||
def _onActiveProfileChanged(self):
|
def _onActiveProfileChanged(self):
|
||||||
if self._profile:
|
if self._profile:
|
||||||
self._profile.settingValueChanged.disconnect(self._onSettingChanged)
|
self._profile.settingValueChanged.disconnect(self._onSettingChanged)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user