Remove MachineManager.activeVariantNames

CURA-6865
This commit is contained in:
Lipu Fei 2019-10-08 15:16:25 +02:00
parent 570dfdab4b
commit fb368a4788
3 changed files with 3 additions and 29 deletions

View file

@ -1,7 +1,7 @@
// Copyright (c) 2017 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
import QtQuick 2.10
import QtQuick.Controls 1.4
import UM 1.2 as UM
@ -28,7 +28,8 @@ Menu
text: model.hotend_name
checkable: true
checked: {
return Cura.MachineManager.activeVariantNames[extruderIndex] == model.hotend_name
var extruder = Cura.MachineManager.activeMachine.extruderList[extruderIndex]
return extruder.variant.name == model.hotend_name
}
exclusiveGroup: group