mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-02 23:31:42 -07:00
Fixed code style in the function - CURA-4352
This commit is contained in:
parent
c03d54f598
commit
f8722a2d4b
1 changed files with 2 additions and 5 deletions
|
|
@ -434,13 +434,10 @@ Item
|
||||||
|
|
||||||
// check if a tick should be shown based on it's index and wether the infill density is a multiple of 10 (slider step size)
|
// check if a tick should be shown based on it's index and wether the infill density is a multiple of 10 (slider step size)
|
||||||
function shouldShowTick (index) {
|
function shouldShowTick (index) {
|
||||||
if ((parseInt(infillDensity.properties.value) % 10 == 0)) {
|
if ((parseInt(infillDensity.properties.value) % 10 == 0) || (index % 10 == 0)) {
|
||||||
return true
|
return true
|
||||||
} else if (index % 10 == 0) {
|
|
||||||
return true
|
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue