Skip to content

Commit 1f4ba75

Browse files
committed
Fix unit tests
1 parent d90d700 commit 1f4ba75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cura/Scene/SliceableObjectDecorator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def __init__(self) -> None:
2525

2626
from cura.CuraApplication import CuraApplication
2727
application = CuraApplication.getInstance()
28-
application.getMachineManager().extruderChanged.connect(self._updateIsAssignedToDisabledExtruder)
28+
if application is not None:
29+
application.getMachineManager().extruderChanged.connect(self._updateIsAssignedToDisabledExtruder)
2930
self._painted_extruders: Optional[List[int]] = None
3031

3132
self.paintTextureChanged = Signal()

0 commit comments

Comments
 (0)