Hide start check button once the check has started

This commit is contained in:
fieldOfView 2016-07-29 14:30:36 +02:00
parent c1d9c1ea12
commit 2576aaca62
2 changed files with 5 additions and 3 deletions

View file

@ -155,6 +155,7 @@ class UMOCheckupMachineAction(MachineAction):
if output_devices: if output_devices:
self._output_device = output_devices[0] self._output_device = output_devices[0]
try: try:
self._output_device.sendCommand("M18") # Turn off all motors so the user can move the axes
self._output_device.startPollEndstop() self._output_device.startPollEndstop()
self._output_device.bedTemperatureChanged.connect(self.bedTemperatureChanged) self._output_device.bedTemperatureChanged.connect(self.bedTemperatureChanged)
self._output_device.hotendTemperaturesChanged.connect(self.hotendTemperatureChanged) self._output_device.hotendTemperaturesChanged.connect(self.hotendTemperatureChanged)

View file

@ -53,9 +53,10 @@ Cura.MachineAction
text: catalog.i18nc("@action:button","Start Printer Check"); text: catalog.i18nc("@action:button","Start Printer Check");
onClicked: onClicked:
{ {
checkupMachineAction.heatupHotendStarted = false checkupMachineAction.heatupHotendStarted = false;
checkupMachineAction.heatupBedStarted = false checkupMachineAction.heatupBedStarted = false;
manager.startCheck() manager.startCheck();
startCheckButton.visible = false;
} }
} }
} }