Commit a2f59afb authored by Nate Graham's avatar Nate Graham
Browse files

Remove unnecessary property that's now only used once

Instead just query the item's properties directly.
parent e9b5cb14
Pipeline #228254 passed with stage
in 2 minutes and 24 seconds
......@@ -34,7 +34,6 @@ Kirigami.OverlaySheet {
implicitHeight: previewImage.implicitHeight
Image {
id: previewImage
readonly property bool available: status === Image.Ready || status === Image.Loading
source: previewPath
width: layout.width
sourceSize.width: width
......@@ -51,7 +50,7 @@ Kirigami.OverlaySheet {
}
}
Kirigami.PlaceholderMessage {
visible: !previewImage.available
visible: previewImage.status !== Image.Ready && previewImage.status !== Image.Loading
icon.name: "view-preview"
text: i18n("No preview available")
}
......
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