diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index c871d35ea7..9e37fa9049 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -127,6 +127,8 @@ class CuraEngineBackend(Backend): ## Perform a slice of the scene. def slice(self): + self.printDurationMessage.emit(0, [0]) + self._stored_layer_data = [] if not self._enabled or not self._global_container_stack: #We shouldn't be slicing. diff --git a/resources/qml/MonitorButton.qml b/resources/qml/MonitorButton.qml index 8a232e62f1..bbb39b188e 100644 --- a/resources/qml/MonitorButton.qml +++ b/resources/qml/MonitorButton.qml @@ -22,7 +22,7 @@ Rectangle { if(!printerConnected) return UM.Theme.getColor("status_offline") - else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing") + else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print") return UM.Theme.getColor("status_busy") else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready") return UM.Theme.getColor("status_ready") diff --git a/resources/qml/Sidebar.qml b/resources/qml/Sidebar.qml index 25931932d3..78930c8d90 100644 --- a/resources/qml/Sidebar.qml +++ b/resources/qml/Sidebar.qml @@ -101,12 +101,16 @@ Rectangle iconSource: { if(!printerConnected) return UM.Theme.getIcon("tab_monitor") - else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing") + else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print") return UM.Theme.getIcon("tab_monitor_busy") + else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready") + return UM.Theme.getIcon("tab_monitor_connected") else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused") return UM.Theme.getIcon("tab_monitor_paused") - else if (Cura.MachineManager.printerOutputDevices[0].jobState != "error") - return UM.Theme.getIcon("tab_monitor_connected") + else if (Cura.MachineManager.printerOutputDevices[0].jobState == "error") + return UM.Theme.getIcon("tab_monitor_stopped") + else + return UM.Theme.getIcon("tab_monitor") } checkable: true checked: monitoringPrint