Small fixes to sidebar layout after refactoring

This commit is contained in:
ChrisTerBeke 2017-12-06 18:09:02 +01:00
parent ee643610e5
commit 9702ffb794
4 changed files with 19 additions and 11 deletions

View file

@ -572,11 +572,7 @@ Item
var steps = parseInt(infillSteps.properties.value)
var infillModelItem = infillModel.get(i)
// TODO: somehow this print causes this method not to crash QML when the sidebar view gets unloaded (when switching states)
// TODO: That should be fixed :P
print("test", density, steps, infillModelItem)
if (infillModelItem
if (infillModelItem != "undefined"
&& density >= infillModelItem.percentageMin
&& density <= infillModelItem.percentageMax
&& steps >= infillModelItem.stepsMin