We can use !isConciergeMode
I was worried about components["art"] && components["art"]["conciergeMode"] being a string but ! will convert it always to a boolean
commitaa76ee9d57ac4c5d7773207397ac33c6108a2b05
authorAlbert Astals Cid <albert.astals@canonical.com>
dateTue 2 Feb 2016, 12:30 (11 years ago)
parentcdd043b
plugins/Dash/CardCreator.js+1−1
@@ -491,7 +491,7 @@ function cardString(template, components) {
491491 if (fallback !== "") {
492492 fallbackCode += 'onStatusChanged: if (status === Image.Error) source = decodeURI("%1");'.arg(fallback);
493493 }
494− code += kArtShapeHolderCode.arg(artAnchors).arg(widthCode).arg(heightCode).arg(aspectRatio).arg(isConciergeMode ? "false" : "true").arg(fallbackCode);
494+ code += kArtShapeHolderCode.arg(artAnchors).arg(widthCode).arg(heightCode).arg(aspectRatio).arg(!isConciergeMode).arg(fallbackCode);
495495 } else {
496496 code += 'readonly property size artShapeSize: Qt.size(-1, -1);\n'
497497 }