fix: always show project url, if available

This commit is contained in:
Sefa Eyeoglu 2022-05-15 20:38:27 +02:00
parent 4adc61bda9
commit 78cf0c73c8
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -218,7 +218,7 @@ void ModrinthPage::updateUI()
{ {
QString text = ""; QString text = "";
if (current.extra.sourceUrl.isEmpty()) if (current.extra.projectUrl.isEmpty())
text = current.name; text = current.name;
else else
text = "<a href=\"" + current.extra.projectUrl + "\">" + current.name + "</a>"; text = "<a href=\"" + current.extra.projectUrl + "\">" + current.name + "</a>";