Commit 1d6bbd30 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

ApplicationDelegate: Be sensitive to backends without a reviews backend

parent 95afc5ed
......@@ -106,7 +106,7 @@ Kirigami.AbstractCard
Label {
Layout.fillWidth: true
text: delegateArea.application.rating ? i18np("%1 rating", "%1 ratings", delegateArea.application.rating.ratingCount) : i18n("No ratings yet")
visible: delegateArea.application.rating || delegateArea.application.backend.reviewsBackend.isResourceSupported(delegateArea.application)
visible: delegateArea.application.rating || (delegateArea.application.backend.reviewsBackend && delegateArea.application.backend.reviewsBackend.isResourceSupported(delegateArea.application))
opacity: 0.5
elide: Text.ElideRight
}
......
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