mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Rename setSelectionExtruder to setExtruderForSelection
This matches more closely with the naming of the other selection actions.
This commit is contained in:
parent
e571b8aeac
commit
78603bed63
2 changed files with 5 additions and 2 deletions
|
|
@ -75,8 +75,11 @@ class CuraActions(QObject):
|
|||
op.addOperation(RemoveSceneNodeOperation(group_node))
|
||||
op.push()
|
||||
|
||||
## Set the extruder that should be used to print the selection.
|
||||
#
|
||||
# \param extruder_id The ID of the extruder stack to use for the selected objects.
|
||||
@pyqtSlot(str)
|
||||
def setSelectionExtruder(self, extruder_id: str) -> None:
|
||||
def setExtruderForSelection(self, extruder_id: str) -> None:
|
||||
operation = GroupedOperation()
|
||||
for node in Selection.getAllSelectedObjects():
|
||||
if node.callDecoration("getActiveExtruder") == extruder_id:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ Menu
|
|||
enabled: UM.Selection.hasSelection
|
||||
checkable: true
|
||||
checked: ExtruderManager.selectedObjectExtruders.indexOf(model.id) != -1
|
||||
onTriggered: CuraActions.setSelectionExtruder(model.id)
|
||||
onTriggered: CuraActions.setExtruderForSelection(model.id)
|
||||
shortcut: "Ctrl+" + (model.index + 1)
|
||||
}
|
||||
onObjectAdded: base.insertItem(base.findItemIndex(extruderHeader) + index, object)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue