Implement link for InfoFrame::updateWithResource

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2024-10-28 22:17:16 +00:00
parent f3cae427f1
commit bd8b30c606
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E

View File

@ -147,11 +147,11 @@ void InfoFrame::updateWithResource(const Resource& resource)
{ {
const QString homepage = resource.homepage(); const QString homepage = resource.homepage();
if (!homepage.isEmpty()) { if (!homepage.isEmpty())
setName("<a href=\"" + homepage + "\">" + resource.name() + "</a>");
else
setName(resource.name());
}
setName(resource.name());
setImage(); setImage();
} }