Use properties instead of slots for min & max flow

This fixes some update issues in the simulation view display

CURA-8196
This commit is contained in:
Jaime van Kessel 2021-05-18 16:18:45 +02:00
parent 5d3b442efb
commit 5bfb0fc437
No known key found for this signature in database
GPG key ID: 3710727397403C91
2 changed files with 6 additions and 7 deletions

View file

@ -412,7 +412,7 @@ Cura.ExpandableComponent
// Flow Rate selected
if(UM.Preferences.getValue("layerview/layer_view_type") == 5)
{
return parseFloat(UM.SimulationView.getMinFlowRate()).toFixed(2);
return parseFloat(UM.SimulationView.minFlowRate).toFixed(2);
}
}
@ -482,7 +482,7 @@ Cura.ExpandableComponent
// Flow rate selected
if(UM.Preferences.getValue("layerview/layer_view_type") == 5)
{
return parseFloat(UM.SimulationView.getMaxFlowRate()).toFixed(2);
return parseFloat(UM.SimulationView.maxFlowRate).toFixed(2);
}
}
return catalog.i18nc("@label","max")