Merge branch '4.0' into STAR-322_cloud-connection

This commit is contained in:
ChrisTerBeke 2018-12-20 15:49:00 +01:00
commit bfd1debb8f
3 changed files with 4 additions and 5 deletions

View File

@ -47,7 +47,7 @@ def getMetaData() -> Dict[str, Any]:
},
"user": {
"get_version": upgrade.getCfgVersion,
"location": {"./user"}
"location": {"./user", "./materials/*"}
},
"variant": {
"get_version": upgrade.getCfgVersion,

View File

@ -30,7 +30,8 @@ Item
width: UM.Theme.getSize("logo").width
height: UM.Theme.getSize("logo").height
mipmap: true
sourceSize.width: width
sourceSize.height: height
}
Row

View File

@ -15,7 +15,7 @@ Rectangle
id: materialSlot
property var material: null
property var hovered: false
property var is_favorite: material != null ? material.is_favorite : false
property var is_favorite: material != null && material.is_favorite
height: UM.Theme.getSize("favorites_row").height
width: parent.width
@ -73,11 +73,9 @@ Rectangle
if (materialSlot.is_favorite)
{
base.materialManager.removeFavorite(material.root_material_id)
materialSlot.is_favorite = false
return
}
base.materialManager.addFavorite(material.root_material_id)
materialSlot.is_favorite = true
return
}
style: ButtonStyle