summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2018-10-22 16:55:39 +0200
committerAleix Pol <[email protected]>2018-10-22 16:55:39 +0200
commit164e968c5aa1b8b81ab33aff36c6b470561878d7 (patch)
tree8c7b8e1afdb2dd54000f4d3a13199599e6e0212c
parent8d6f2faaca10deb24194e255f0193329bffed775 (diff)
snap: show a tick by the verified publishers
-rw-r--r--libdiscover/backends/SnapBackend/SnapResource.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdiscover/backends/SnapBackend/SnapResource.cpp b/libdiscover/backends/SnapBackend/SnapResource.cpp
index 801b8ff..0ec80e9 100644
--- a/libdiscover/backends/SnapBackend/SnapResource.cpp
+++ b/libdiscover/backends/SnapBackend/SnapResource.cpp
@@ -358,7 +358,12 @@ QString SnapResource::channel() const
QString SnapResource::author() const
{
- return m_snap->publisherDisplayName();
+ QString author = m_snap->publisherDisplayName();
+ if (m_snap->publisherValidation() == QSnapdEnums::PublisherValidationVerified) {
+ author += QStringLiteral(" ✅");
+ }
+
+ return author;
}
void SnapResource::setChannel(const QString& channelName)