mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
08502b9240
3 changed files with 10 additions and 4 deletions
|
@ -127,6 +127,8 @@ class CuraEngineBackend(Backend):
|
||||||
|
|
||||||
## Perform a slice of the scene.
|
## Perform a slice of the scene.
|
||||||
def slice(self):
|
def slice(self):
|
||||||
|
self.printDurationMessage.emit(0, [0])
|
||||||
|
|
||||||
self._stored_layer_data = []
|
self._stored_layer_data = []
|
||||||
|
|
||||||
if not self._enabled or not self._global_container_stack: #We shouldn't be slicing.
|
if not self._enabled or not self._global_container_stack: #We shouldn't be slicing.
|
||||||
|
|
|
@ -22,7 +22,7 @@ Rectangle
|
||||||
{
|
{
|
||||||
if(!printerConnected)
|
if(!printerConnected)
|
||||||
return UM.Theme.getColor("status_offline")
|
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")
|
return UM.Theme.getColor("status_busy")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready")
|
||||||
return UM.Theme.getColor("status_ready")
|
return UM.Theme.getColor("status_ready")
|
||||||
|
|
|
@ -101,12 +101,16 @@ Rectangle
|
||||||
iconSource: {
|
iconSource: {
|
||||||
if(!printerConnected)
|
if(!printerConnected)
|
||||||
return UM.Theme.getIcon("tab_monitor")
|
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")
|
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")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "paused")
|
||||||
return UM.Theme.getIcon("tab_monitor_paused")
|
return UM.Theme.getIcon("tab_monitor_paused")
|
||||||
else if (Cura.MachineManager.printerOutputDevices[0].jobState != "error")
|
else if (Cura.MachineManager.printerOutputDevices[0].jobState == "error")
|
||||||
return UM.Theme.getIcon("tab_monitor_connected")
|
return UM.Theme.getIcon("tab_monitor_stopped")
|
||||||
|
else
|
||||||
|
return UM.Theme.getIcon("tab_monitor")
|
||||||
}
|
}
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: monitoringPrint
|
checked: monitoringPrint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue