mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Remove MachineManager.activeVariantNames
CURA-6865
This commit is contained in:
parent
570dfdab4b
commit
fb368a4788
3 changed files with 3 additions and 29 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue