diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-04-06 12:24:17 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-04-06 12:24:17 +0300 |
commit | ef6f76fc98cf67d8f3237693ae461b7d57724f3e (patch) | |
tree | 7036d169d17689ceab5d5aee167c38ac86cc93f0 /plugins/SimulationView | |
parent | 1158856f804ecb19654fa3a7ba28f292e8a521c4 (diff) |
Fix parameter injection deprecation warning
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationViewMenuComponent.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SimulationView/SimulationViewMenuComponent.qml b/plugins/SimulationView/SimulationViewMenuComponent.qml index 5d47a6324e..a811fea5db 100644 --- a/plugins/SimulationView/SimulationViewMenuComponent.qml +++ b/plugins/SimulationView/SimulationViewMenuComponent.qml @@ -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: { |