Commit e05225de authored by Volker Krause's avatar Volker Krause
Browse files

Add fallback icon for pkpasses without an icon asset

parent 17424dc4
......@@ -118,6 +118,7 @@ if (ANDROID)
kirigami_package_breeze_icons(ICONS
application-pdf
bookmarks
channel-insecure-symbolic
channel-secure-symbolic
checkmark
......
......@@ -51,7 +51,7 @@ Kirigami.ScrollablePage {
highlighted: false
text: pkPass.description
subtitle: pkPass.organizationName
icon: "image://org.kde.pkpass/" + pkPassId + "/icon"
icon: pkPass.hasIcon ? "image://org.kde.pkpass/" + pkPassId + "/icon" : "bookmarks"
reserveSpaceForIcon: true
onClicked: applicationWindow().pageStack.push(pkpassComponent, { passId: pkPassId, pass: pkPass, genericPassId: model.passId });
}
......
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