mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:39:03 +08:00
Fix parameter injection deprecation warning
This commit is contained in:
parent
1158856f80
commit
ef6f76fc98
@ -136,7 +136,7 @@ Cura.ExpandableComponent
|
|||||||
model: layerViewTypes
|
model: layerViewTypes
|
||||||
visible: !UM.SimulationView.compatibilityMode
|
visible: !UM.SimulationView.compatibilityMode
|
||||||
|
|
||||||
onActivated: UM.Preferences.setValue("layerview/layer_view_type", index)
|
onActivated: (index) => {UM.Preferences.setValue("layerview/layer_view_type", index)}
|
||||||
|
|
||||||
Component.onCompleted:
|
Component.onCompleted:
|
||||||
{
|
{
|
||||||
|
@ -163,7 +163,7 @@ UM.MainWindow
|
|||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
//DeleteSelection on the keypress backspace event
|
//DeleteSelection on the keypress backspace event
|
||||||
Keys.onPressed:
|
Keys.onPressed: (event) =>
|
||||||
{
|
{
|
||||||
if (event.key == Qt.Key_Backspace)
|
if (event.key == Qt.Key_Backspace)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user