mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
Rescale the current layer number based on the maximum layer
This makes sure we still have the top layer selected when we receive new data. Contributes to Asana issue 34806173176751
This commit is contained in:
parent
8db06b8305
commit
d9ad54cd0d
2 changed files with 11 additions and 6 deletions
|
@ -21,6 +21,7 @@ Item
|
|||
orientation: Qt.Vertical
|
||||
minimumValue: 0;
|
||||
maximumValue: UM.LayerView.numLayers;
|
||||
stepSize: 1
|
||||
|
||||
value: UM.LayerView.currentLayer
|
||||
onValueChanged: UM.LayerView.setCurrentLayer(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue