mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Show correct selected gcode flavor now there are more than 2 options
CURA-2304
This commit is contained in:
parent
2e7dbea559
commit
a62b0587ad
1 changed files with 9 additions and 1 deletions
|
|
@ -148,7 +148,15 @@ Cura.MachineAction
|
|||
ComboBox
|
||||
{
|
||||
model: ["RepRap (Marlin/Sprinter)", "UltiGCode", "Repetier"]
|
||||
currentIndex: machineGCodeFlavorProvider.properties.value != model[1] ? 0 : 1
|
||||
currentIndex:
|
||||
{
|
||||
var index = model.indexOf(machineGCodeFlavorProvider.properties.value);
|
||||
if(index == -1)
|
||||
{
|
||||
index = 0;
|
||||
}
|
||||
return index
|
||||
}
|
||||
onActivated:
|
||||
{
|
||||
machineGCodeFlavorProvider.setPropertyValue("value", model[index]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue