Fix some warnings

Contributes to CL-1152
This commit is contained in:
Ian Paschal 2018-12-10 15:05:01 +01:00
parent 2db5d2b231
commit 32f2b7ec1f
4 changed files with 10 additions and 2 deletions

View file

@ -55,7 +55,7 @@ Item
left: progressBar.right
leftMargin: 18 * screenScaleFactor // TODO: Theme!
}
text: Math.round(printJob.progress * 100) + "%"
text: printJob ? Math.round(printJob.progress * 100) + "%" : "0%"
color: printJob && printJob.isActive ? "#374355" : "#babac1" // TODO: Theme!
width: contentWidth
font: UM.Theme.getFont("medium") // 14pt, regular