on xenial help sign in
Cache images in cards.
8d2514dMichał Sawicz
qml/Dash/Card.qml+1
@@ -87,6 +87,7 @@ AbstractButton {
87 height: template && template["card-layout"] === "horizontal" ? header.height : width / artShape.aspect
87 height: template && template["card-layout"] === "horizontal" ? header.height : width / artShape.aspect
88 objectName: "artImage"
88 objectName: "artImage"
89 source: cardData && cardData["art"] || ""
89 source: cardData && cardData["art"] || ""
90+ cache: true
90 // FIXME uncomment when having investigated / fixed the crash
91 // FIXME uncomment when having investigated / fixed the crash
91 //sourceSize.width: width > height ? width : 0
92 //sourceSize.width: width > height ? width : 0
92 //sourceSize.height: height > width ? height : 0
93 //sourceSize.height: height > width ? height : 0
qml/Dash/CardHeader.qml+1
@@ -63,6 +63,7 @@ Item {
63
63
64 image: Image {
64 image: Image {
65 id: mascotImage
65 id: mascotImage
66+ cache: true
66
67
67 sourceSize { width: mascotShape.maxSize; height: mascotShape.maxSize }
68 sourceSize { width: mascotShape.maxSize; height: mascotShape.maxSize }
68 fillMode: Image.PreserveAspectCrop
69 fillMode: Image.PreserveAspectCrop