Browse Source

Use ContainerPropertyProvider to provide properties for the materials page

Contributes to CURA-342
Arjen Hiemstra 8 years ago
parent
commit
419326132f
1 changed files with 3 additions and 8 deletions
  1. 3 8
      resources/qml/Preferences/MaterialView.qml

+ 3 - 8
resources/qml/Preferences/MaterialView.qml

@@ -211,16 +211,11 @@ TabView
                         suffix: model.unit
                         maximumValue: 99999
                         decimals: model.unit == "mm" ? 2 : 0
-                    }
-
-                    UM.SettingPropertyProvider
-                    {
-                        id: provider
 
-                        containerStackId: Cura.MachineManager.activeMachineId
-                        key: model.key
-                        watchedProperties: [ "value" ]
+                        onEditingFinished: provider.setPropertyValue("value", value)
                     }
+
+                    UM.ContainerPropertyProvider { id: provider; containerId: base.containerId; watchedProperties: [ "value" ]; key: model.key }
                 }
             }
         }