Fix code style

These changed in the same pull request so I'll remove them here.

Contributes to issue CURA-5682.
This commit is contained in:
Ghostkeeper 2018-09-06 17:23:16 +02:00
parent 9e56d6d29f
commit c1ef9abf1d
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
4 changed files with 9 additions and 6 deletions

View file

@ -21,7 +21,8 @@ Rectangle
width: parent.width
color: base.currentItem == model ? UM.Theme.getColor("favorites_row_selected") : "transparent"
Component.onCompleted: {
Component.onCompleted:
{
if (material.root_material_id == base.active_root_material_id) {
base.currentItem = material
}
@ -55,7 +56,8 @@ Rectangle
MouseArea
{
anchors.fill: parent
onClicked: {
onClicked:
{
base.currentItem = material
base.current_brand = material.brand
base.current_type = material.brand+"_"+material.material