Fix parameter injection deprecation warning

This commit is contained in:
Jaime van Kessel 2022-04-06 11:24:17 +02:00
parent 1158856f80
commit ef6f76fc98
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ Cura.ExpandableComponent
model: layerViewTypes
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:
{

View File

@ -163,7 +163,7 @@ UM.MainWindow
anchors.fill: parent
//DeleteSelection on the keypress backspace event
Keys.onPressed:
Keys.onPressed: (event) =>
{
if (event.key == Qt.Key_Backspace)
{