Verified Commit a1d46bee authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/fifteenPuzzle: fix invalid image path when it's not set

parent 0c1c9943
Pipeline #210919 passed with stage
in 1 minute and 31 seconds
......@@ -65,14 +65,18 @@ Rectangle {
z: 1
}
Image {
id: pieceImage
width: parent.width
height: parent.height
visible: Plasmoid.configuration.useImage
source: "image://fifteenpuzzle/" + boardSize + "-" + number + "-" + pieceWidth + "-" + pieceHeight + "-" + Plasmoid.configuration.imagePath;
cache: false
Loader {
anchors.fill: parent
active: Plasmoid.configuration.useImage
asynchronous: true
z: 0
sourceComponent: Image {
id: pieceImage
source: "image://fifteenpuzzle/" + boardSize + "-" + number + "-" + pieceWidth + "-" + pieceHeight + "-" + Plasmoid.configuration.imagePath
cache: false
}
}
MouseArea {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment