Set & use enabled property for saving projects when ufp/gcode is loaded

CURA-8034
This commit is contained in:
Jaime van Kessel 2021-03-05 14:09:39 +01:00
parent 2b63fb1081
commit cc1aadde12
No known key found for this signature in database
GPG key ID: 3710727397403C91
3 changed files with 9 additions and 1 deletions

View file

@ -1268,10 +1268,11 @@ class CuraApplication(QtApplication):
if other_bb is not None:
scene_bounding_box = scene_bounding_box + node.getBoundingBox()
if print_information:
print_information.setPreSliced(is_block_slicing_node)
self.getWorkspaceFileHandler().setEnabled(not is_block_slicing_node)
if not scene_bounding_box:
scene_bounding_box = AxisAlignedBox.Null