mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
T466: Added hiding of properties menu
This commit is contained in:
parent
d7b4296cfc
commit
2ee5e2cb0b
3 changed files with 27 additions and 4 deletions
|
@ -71,10 +71,14 @@ class GCODEReader(MeshReader):
|
|||
# Preferences.getInstance().setValue("cura/jobname_prefix", True)
|
||||
backend = Application.getInstance().getBackend()
|
||||
backend._pauseSlicing = False
|
||||
Application.getInstance().setHideSettings(False)
|
||||
#Application.getInstance().getPrintInformation()._setAbbreviatedMachineName()
|
||||
else:
|
||||
backend = Application.getInstance().getBackend()
|
||||
backend._pauseSlicing = True
|
||||
backend.backendStateChange.emit(1)
|
||||
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
|
||||
Application.getInstance().setHideSettings(True)
|
||||
|
||||
def read(self, file_name):
|
||||
scene_node = None
|
||||
|
@ -213,6 +217,8 @@ class GCODEReader(MeshReader):
|
|||
decorator.setLayerData(layer_mesh)
|
||||
scene_node.addDecorator(decorator)
|
||||
|
||||
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
|
||||
|
||||
scene_node_parent = Application.getInstance().getBuildVolume()
|
||||
scene_node.setParent(scene_node_parent)
|
||||
|
||||
|
@ -230,10 +236,11 @@ class GCODEReader(MeshReader):
|
|||
# scene_node.setMeshData(mesh_builder.build())
|
||||
# scene_node.setMeshData(MeshData(file_name=file_name))
|
||||
|
||||
Application.getInstance().getPrintInformation()._abbr_machine = "Pre-sliced"
|
||||
|
||||
|
||||
Preferences.getInstance().setValue("cura/jobname_prefix", True)
|
||||
|
||||
|
||||
view = Application.getInstance().getController().getActiveView()
|
||||
if view.getPluginId() == "LayerView":
|
||||
view.resetLayerData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue