mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Handle null print job more elegantly
Contributes to CL-1150
This commit is contained in:
parent
255a7fa1fb
commit
d54a1cb41b
1 changed files with 12 additions and 9 deletions
|
@ -96,6 +96,8 @@ Item
|
||||||
{
|
{
|
||||||
id: progressItem;
|
id: progressItem;
|
||||||
color:
|
color:
|
||||||
|
{
|
||||||
|
if (printJob)
|
||||||
{
|
{
|
||||||
var state = printJob.state
|
var state = printJob.state
|
||||||
var inactiveStates = [
|
var inactiveStates = [
|
||||||
|
@ -108,6 +110,7 @@ Item
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("monitor_progress_fill_inactive")
|
return UM.Theme.getColor("monitor_progress_fill_inactive")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return "#0a0850" // TODO: Theme!
|
return "#0a0850" // TODO: Theme!
|
||||||
}
|
}
|
||||||
radius: 4 * screenScaleFactor // TODO: Theme!
|
radius: 4 * screenScaleFactor // TODO: Theme!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue