mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 13:39:00 +08:00
Call the right methods of CuraActions in Actions.qml
Contributes to CURA-3609
This commit is contained in:
parent
b56802a523
commit
03ccdec861
@ -187,7 +187,7 @@ Item
|
|||||||
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
iconName: "edit-delete";
|
iconName: "edit-delete";
|
||||||
shortcut: StandardKey.Delete;
|
shortcut: StandardKey.Delete;
|
||||||
onTriggered: CuraApplication.deleteSelection();
|
onTriggered: CuraActions.deleteSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
@ -196,6 +196,7 @@ Item
|
|||||||
text: catalog.i18ncp("@action:inmenu menubar:edit", "Center Selected Model", "Center Selected Models", UM.Selection.selectionCount);
|
text: catalog.i18ncp("@action:inmenu menubar:edit", "Center Selected Model", "Center Selected Models", UM.Selection.selectionCount);
|
||||||
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
enabled: UM.Controller.toolsEnabled && UM.Selection.hasSelection;
|
||||||
iconName: "align-vertical-center";
|
iconName: "align-vertical-center";
|
||||||
|
onTriggered: CuraActions.centerSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
|
Loading…
x
Reference in New Issue
Block a user